]> granicus.if.org Git - postgresql/commit
Further consolidation of DROP statement handling.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Nov 2011 02:31:29 +0000 (21:31 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Nov 2011 02:32:34 +0000 (21:32 -0500)
commitfc6d1006bda783cc002c61a5f072905849dbde4b
tree555ab6461e7780c0f5a5f21cc80b8f7f17eb844d
parent709aca59608395eef9ceb7dcb79fd9d03a0709ef
Further consolidation of DROP statement handling.

This gets rid of an impressive amount of duplicative code, with only
minimal behavior changes.  DROP FOREIGN DATA WRAPPER now requires object
ownership rather than superuser privileges, matching the documentation
we already have.  We also eliminate the historical warning about dropping
a built-in function as unuseful.  All operations are now performed in the
same order for all object types handled by dropcmds.c.

KaiGai Kohei, with minor revisions by me
21 files changed:
src/backend/commands/aggregatecmds.c
src/backend/commands/dropcmds.c
src/backend/commands/foreigncmds.c
src/backend/commands/functioncmds.c
src/backend/commands/opclasscmds.c
src/backend/commands/operatorcmds.c
src/backend/commands/proclang.c
src/backend/commands/trigger.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/rewrite/rewriteRemove.c
src/backend/tcop/utility.c
src/include/commands/defrem.h
src/include/commands/proclang.h
src/include/commands/trigger.h
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h
src/include/rewrite/rewriteRemove.h
src/test/regress/expected/foreign_data.out
src/test/regress/sql/foreign_data.sql