diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-04 06:11:54 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-04 06:11:54 +0000 |
commit | cdeca5f590cc3c336c9c217831d68a2ca7f15265 (patch) | |
tree | f233f7ae62023950d1c169530b83f705c63ceed0 /src/backend/commands/remove.c | |
parent | 9cf327790d978fc4ec6dba1c7f456e0a7596e4e2 (diff) | |
download | postgresql-cdeca5f590cc3c336c9c217831d68a2ca7f15265.tar.gz postgresql-cdeca5f590cc3c336c9c217831d68a2ca7f15265.zip |
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.
Diffstat (limited to 'src/backend/commands/remove.c')
-rw-r--r-- | src/backend/commands/remove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/remove.c b/src/backend/commands/remove.c index a90af396a05..75f3356289d 100644 --- a/src/backend/commands/remove.c +++ b/src/backend/commands/remove.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.49 2000/05/28 20:34:50 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.50 2000/07/04 06:11:29 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -236,7 +236,7 @@ AttributeAndRelationRemove(Oid typeOid) char *name; name = NameStr(((Form_pg_class) GETSTRUCT(tup))->relname); - heap_drop_with_catalog(name); + heap_drop_with_catalog(name, allowSystemTableMods); } heap_endscan(scan); } |