pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
Date: Thu, 22 Jan 2015 17:37:13 +0000
Message-ID: <E1YELgv-0007mA-Rk@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/59367fdf97cc1875b053ebf87cd1e071dc7f3640

Modified Files
--------------
src/backend/commands/foreigncmds.c         |   56 ++++++++++++++-
src/backend/commands/typecmds.c            |   65 ++++++++++++++---
src/test/regress/expected/foreign_data.out |  104 ++++++++++++++--------------
3 files changed, 161 insertions(+), 64 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 (7+ messages)  latest in thread

Message-ID: <E1YELgv-0007mA-Rk@gemulon.postgresql.org>
Permalink:  ../E1YELgv-0007mA-Rk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YELgv-0007mA-Rk@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: bruce@momjian.us
  Subject: Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
  In-Reply-To: <E1YELgv-0007mA-Rk@gemulon.postgresql.org>
  References: <E1YELgv-0007mA-Rk@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