pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: For REASSIGN OWNED for foreign user mappings
Date: Fri, 11 Dec 2015 21:46:28 +0000
Message-ID: <E1a7VWG-0005rW-4P@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/31f88a12a0d9e340f7ccf49e5f133835499c981b

Modified Files
--------------
src/backend/catalog/pg_shdepend.c          |    5 +++++
src/test/regress/expected/foreign_data.out |   14 ++++++++------
src/test/regress/sql/foreign_data.sql      |    7 +++++--
3 files changed, 18 insertions(+), 8 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (6+ messages)  latest in thread

Message-ID: <E1a7VWG-0005rW-4P@gemulon.postgresql.org>
Permalink:  ../E1a7VWG-0005rW-4P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1a7VWG-0005rW-4P@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: For REASSIGN OWNED for foreign user mappings
  In-Reply-To: <E1a7VWG-0005rW-4P@gemulon.postgresql.org>
  References: <E1a7VWG-0005rW-4P@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox