From 9e0b4634732d089237c5eaecb91ad4b1e943bc0f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 17 Jan 2000 23:57:48 +0000 Subject: setheapoverride() is history. Uses replaced with CommandCounterIncrement() where necessary --- several of them didn't really need it, though. tqual-checking macros simplified accordingly. --- src/backend/executor/execMain.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/backend/executor/execMain.c') diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 352e368d99..fa98950ac1 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -26,7 +26,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.104 2000/01/05 18:23:46 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.105 2000/01/17 23:57:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -723,18 +723,13 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate) FreeTupleDesc(tupdesc); /* - * XXX rather than having to call setheapoverride(true) - * and then back to false, we should change the arguments - * to heap_open() instead.. - * - * XXX no, we should use commandCounterIncrement... + * Advance command counter so that the newly-created + * relation's catalog tuples will be visible to heap_open. */ - setheapoverride(true); + CommandCounterIncrement(); intoRelationDesc = heap_open(intoRelationId, AccessExclusiveLock); - - setheapoverride(false); } } } -- cgit v1.2.1