]> 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)
commitf44c5203b741ed2f188a9e58b62e93c8c47e9bb4
tree9785c184e0534ca22b6adea5dcc773d35f7252e9
parent2a37a103b991f15899dfe1a405807a0923f6f02b
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