pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix changing the ownership of ALL TABLES IN SCHEMA publication.
Date: Wed, 08 Dec 2021 06:13:50 +0000
Message-ID: <E1muqD8-00033X-Nh@gemulon.postgresql.org> (raw)

Fix changing the ownership of ALL TABLES IN SCHEMA publication.

Ensure that the new owner of ALL TABLES IN SCHEMA publication must be a
superuser. The same is already ensured during CREATE PUBLICATION.

Author: Vignesh C
Reviewed-by: Nathan Bossart, Greg Nancarrow, Michael Paquier, Haiying Tang
Discussion: https://postgr.es/m/CALDaNm0E5U-RqxFuFrkZrQeG7ae5trGa=xs=iRtPPHULtT4zOw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1a2aaeb0db1bccd97140d479c4247127f6cb9378

Modified Files
--------------
src/backend/catalog/pg_publication.c      | 30 ++++++++++++++++++++++++++++++
src/backend/commands/publicationcmds.c    |  7 +++++++
src/include/catalog/pg_publication.h      |  1 +
src/test/regress/expected/publication.out | 15 +++++++++++++++
src/test/regress/sql/publication.sql      | 15 +++++++++++++++
5 files changed, 68 insertions(+)



Message-ID: <E1muqD8-00033X-Nh@gemulon.postgresql.org>
Permalink:  ../E1muqD8-00033X-Nh@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1muqD8-00033X-Nh@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: akapila@postgresql.org
  Subject: Re: pgsql: Fix changing the ownership of ALL TABLES IN SCHEMA publication.
  In-Reply-To: <E1muqD8-00033X-Nh@gemulon.postgresql.org>
  References: <E1muqD8-00033X-Nh@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