]> granicus.if.org Git - postgresql/commit
Refactor "ALTER some-obj SET SCHEMA" implementation
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 27 Sep 2012 21:13:09 +0000 (18:13 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 2 Oct 2012 21:13:54 +0000 (18:13 -0300)
commit2164f9a1254980a02ef9ca99ee3bcb8c1298b219
treeee8a05a3997289cbcde799728f1b4a81601bc64c
parenta563d941803535dbd27d4191fe7729497b7fdf31
Refactor "ALTER some-obj SET SCHEMA" implementation

Instead of having each object type implement the catalog munging
independently, centralize knowledge about how to do it and expand the
existing table in objectaddress.c with enough data about each object
type to support this operation.

Author: KaiGai Kohei
Tweaks by me
Reviewed by Robert Haas
17 files changed:
src/backend/catalog/objectaddress.c
src/backend/commands/alter.c
src/backend/commands/collationcmds.c
src/backend/commands/conversioncmds.c
src/backend/commands/dropcmds.c
src/backend/commands/functioncmds.c
src/backend/commands/opclasscmds.c
src/backend/commands/operatorcmds.c
src/backend/commands/tsearchcmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/include/catalog/objectaddress.h
src/include/commands/alter.h
src/include/commands/conversioncmds.h
src/include/commands/defrem.h
src/include/nodes/parsenodes.h