From cdeca5f590cc3c336c9c217831d68a2ca7f15265 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 4 Jul 2000 06:11:54 +0000 Subject: Make toast-table creation and deletion work somewhat reliably. Don't go through pg_exec_query_dest(), but directly to the execution routines. Also, extend parameter lists so that there's no need to change the global setting of allowSystemTableMods, a hack that was certain to cause trouble in the event of any error. --- src/backend/executor/execMain.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/backend/executor/execMain.c') diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index f80fe9abab7..7492c7ae2f6 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -27,7 +27,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.118 2000/06/17 21:48:47 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.119 2000/07/04 06:11:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -877,8 +877,12 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate) */ tupdesc = CreateTupleDescCopy(tupType); - intoRelationId = heap_create_with_catalog(intoName, - tupdesc, RELKIND_RELATION, parseTree->isTemp); + intoRelationId = + heap_create_with_catalog(intoName, + tupdesc, + RELKIND_RELATION, + parseTree->isTemp, + allowSystemTableMods); FreeTupleDesc(tupdesc); -- cgit v1.2.3