More closing of relations left open by parser.
This commit is contained in:
parent
1a865b8338
commit
83cb729887
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.6 1996/10/13 04:25:42 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.7 1996/10/14 03:53:53 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -831,6 +831,8 @@ makeRangeTable(ParseState *pstate, char *relname, List *frmList)
|
||||
pstate->p_rtable = lappend(pstate->p_rtable, ent);
|
||||
}
|
||||
x = RangeTablePosn(pstate->p_rtable, relname);
|
||||
if (pstate->p_current_rel != NULL)
|
||||
heap_close(pstate->p_current_rel);
|
||||
pstate->p_current_rel = heap_openr(VarnoGetRelname(pstate,x));
|
||||
if (pstate->p_current_rel == NULL)
|
||||
elog(WARN,"invalid relation name");
|
||||
|
Loading…
x
Reference in New Issue
Block a user