diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-06-14 18:04:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-06-14 18:04:34 +0000 |
commit | 0cefb50f3ce964d6097aad64dabd9b544c3d2e68 (patch) | |
tree | 4e1ee9454bc958d35194062eee8894205cd08da5 /src/include/commands/conversioncmds.h | |
parent | 95ce4ee943f226152ac8c147da178af5d1a95909 (diff) | |
download | postgresql-0cefb50f3ce964d6097aad64dabd9b544c3d2e68.tar.gz postgresql-0cefb50f3ce964d6097aad64dabd9b544c3d2e68.zip |
Refactor the handling of the various DropStmt variants so that when multiple
objects are specified, we drop them all in a single performMultipleDeletions
call. This makes the RESTRICT/CASCADE checks more relaxed: it's not counted
as a cascade if one of the later objects has a dependency on an earlier one.
NOTICE messages about such cases go away, too.
In passing, fix the permissions check for DROP CONVERSION, which for some
reason was never made role-aware, and omitted the namespace-owner exemption
too.
Alex Hunsaker, with further fiddling by me.
Diffstat (limited to 'src/include/commands/conversioncmds.h')
-rw-r--r-- | src/include/commands/conversioncmds.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/commands/conversioncmds.h b/src/include/commands/conversioncmds.h index 570cb796224..815bbce3294 100644 --- a/src/include/commands/conversioncmds.h +++ b/src/include/commands/conversioncmds.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/conversioncmds.h,v 1.16 2008/01/01 19:45:57 momjian Exp $ + * $PostgreSQL: pgsql/src/include/commands/conversioncmds.h,v 1.17 2008/06/14 18:04:34 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -18,8 +18,7 @@ #include "nodes/parsenodes.h" extern void CreateConversionCommand(CreateConversionStmt *parsetree); -extern void DropConversionCommand(List *conversion_name, - DropBehavior behavior, bool missing_ok); +extern void DropConversionsCommand(DropStmt *drop); extern void RenameConversion(List *name, const char *newname); extern void AlterConversionOwner(List *name, Oid newOwnerId); extern void AlterConversionOwner_oid(Oid conversionOid, Oid newOwnerId); |