]> granicus.if.org Git - postgresql/commit
Refactor ALTER some-obj RENAME implementation
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 21 Jan 2013 15:06:41 +0000 (12:06 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 21 Jan 2013 15:06:41 +0000 (12:06 -0300)
commit765cbfdc9263bf7c90b9d1f1044c6950b8b7088c
treeb7fc0ebfb2be1d051c2c223f5215239aeb3c1558
parent8f0d8f481e86514bb35538827df7e1e35baee368
Refactor ALTER some-obj RENAME implementation

Remove duplicate implementations of catalog munging and miscellaneous
privilege checks.  Instead rely on already existing data in
objectaddress.c to do the work.

Author: KaiGai Kohei, changes by me
Reviewed by: Robert Haas, Álvaro Herrera, Dimitri Fontaine
19 files changed:
src/backend/catalog/objectaddress.c
src/backend/commands/aggregatecmds.c
src/backend/commands/alter.c
src/backend/commands/collationcmds.c
src/backend/commands/conversioncmds.c
src/backend/commands/event_trigger.c
src/backend/commands/foreigncmds.c
src/backend/commands/functioncmds.c
src/backend/commands/opclasscmds.c
src/backend/commands/proclang.c
src/backend/commands/tsearchcmds.c
src/backend/parser/gram.y
src/include/commands/collationcmds.h
src/include/commands/conversioncmds.h
src/include/commands/defrem.h
src/include/commands/event_trigger.h
src/include/commands/proclang.h
src/test/regress/expected/alter_generic.out
src/test/regress/sql/alter_generic.sql