For REASSIGN OWNED for foreign user mappings
authorAlvaro Herrera
Fri, 11 Dec 2015 21:39:09 +0000 (18:39 -0300)
committerAlvaro Herrera
Fri, 11 Dec 2015 21:39:09 +0000 (18:39 -0300)
commit1f8757ad8c0436a1b1559fb83325a727e05b920e
tree404ec9f7da18cc6f9b54e35ea5a14f36e2818fd9
parent423697e3dd4d4986854a9ed3b11962515423f2e7
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