]> granicus.if.org Git - postgresql/commit
adjust ACL owners for REASSIGN and ALTER OWNER TO
authorBruce Momjian <bruce@momjian.us>
Thu, 22 Jan 2015 17:36:34 +0000 (12:36 -0500)
committerBruce Momjian <bruce@momjian.us>
Thu, 22 Jan 2015 17:36:55 +0000 (12:36 -0500)
commit59367fdf97cc1875b053ebf87cd1e071dc7f3640
tree6662d8e0a0f7e5692b3dae1c3797b401343f5c60
parentb181a91981203f6ec9403115a2917bd3f9473707
adjust ACL owners for REASSIGN and ALTER OWNER TO

When REASSIGN and ALTER OWNER TO are used, both the object owner and ACL
list should be changed from the old owner to the new owner. This patch
fixes types, foreign data wrappers, and foreign servers to change their
ACL list properly;  they already changed owners properly.

BACKWARD INCOMPATIBILITY?

Report by Alexey Bashtanov
src/backend/commands/foreigncmds.c
src/backend/commands/typecmds.c
src/test/regress/expected/foreign_data.out