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/commands/view.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/view.c') diff --git a/src/backend/commands/view.c b/src/backend/commands/view.c index 3b1bfedea23..8503eb3a7eb 100644 --- a/src/backend/commands/view.c +++ b/src/backend/commands/view.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: view.c,v 1.44 2000/06/30 07:06:05 tgl Exp $ + * $Id: view.c,v 1.45 2000/07/04 06:11:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -17,6 +17,7 @@ #include "catalog/heap.h" #include "commands/creatinh.h" #include "commands/view.h" +#include "miscadmin.h" #include "nodes/makefuncs.h" #include "parser/parse_relation.h" #include "parser/parse_type.h" @@ -296,5 +297,5 @@ RemoveView(char *viewName) * We just have to drop the relation; the associated rules will * be cleaned up automatically. */ - heap_drop_with_catalog(viewName); + heap_drop_with_catalog(viewName, allowSystemTableMods); } -- cgit v1.2.3