]> granicus.if.org Git - postgresql/commit
For REASSIGN OWNED for foreign user mappings
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 11 Dec 2015 21:39:09 +0000 (18:39 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 11 Dec 2015 21:39:09 +0000 (18:39 -0300)
commit31f88a12a0d9e340f7ccf49e5f133835499c981b
tree48424464f714a9fdf5b21ee517b809209080cefb
parent6061aa8ed763f1d9d37d402a0e5769c823dd797c
For REASSIGN OWNED for foreign user mappings

As reported in bug #13809 by Alexander Ashurkov, the code for REASSIGN
OWNED hadn't gotten word about user mappings.  Deal with them in the
same way default ACLs do, which is to ignore them altogether; they are
handled just fine by DROP OWNED.  The other foreign object cases are
already handled correctly by both commands.

Also add a REASSIGN OWNED statement to foreign_data test to exercise the
foreign data objects.  (The changes are just before the "cleanup" phase,
so it shouldn't remove any existing live test.)

Reported by Alexander Ashurkov, then independently by Jaime Casanova.
src/backend/catalog/pg_shdepend.c
src/test/regress/expected/foreign_data.out
src/test/regress/sql/foreign_data.sql