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/utils/cache/temprel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/cache/temprel.c') diff --git a/src/backend/utils/cache/temprel.c b/src/backend/utils/cache/temprel.c index 20c94ac57b..e336e01939 100644 --- a/src/backend/utils/cache/temprel.c +++ b/src/backend/utils/cache/temprel.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.25 2000/06/28 03:32:25 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/temprel.c,v 1.26 2000/07/04 06:11:47 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -33,6 +33,7 @@ #include "catalog/heap.h" #include "catalog/index.h" +#include "miscadmin.h" #include "utils/catcache.h" #include "utils/temprel.h" @@ -112,7 +113,7 @@ remove_all_temp_relations(void) /* safe from deallocation */ strcpy(relname, temp_rel->user_relname); - heap_drop_with_catalog(relname); + heap_drop_with_catalog(relname, allowSystemTableMods); } else index_drop(temp_rel->relid); -- cgit v1.2.1