pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Dump public schema ownership and security labels.
Date: Tue, 29 Jun 2021 01:36:06 +0000
Message-ID: <E1ly2fW-0002al-0y@gemulon.postgresql.org> (raw)

Dump public schema ownership and security labels.

As a side effect, this corrects dumps of public schema ACLs in databases
where the DBA dropped and recreated that schema.

Reviewed by Asif Rehman.

Discussion: https://postgr.es/m/20201229134924.GA1431748@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a7a7be1f2fa6b9f0f48e69f12256d8f588af729b

Modified Files
--------------
src/bin/pg_dump/dumputils.c                 | 15 +++--
src/bin/pg_dump/dumputils.h                 |  1 +
src/bin/pg_dump/pg_backup_archiver.c        | 21 ++++---
src/bin/pg_dump/pg_dump.c                   | 98 +++++++++++++++++++++--------
src/bin/pg_dump/pg_dump.h                   |  2 +
src/bin/pg_dump/t/002_pg_dump.pl            | 75 ++++++++++++++++++++--
src/test/modules/test_pg_dump/t/001_base.pl |  8 +++
7 files changed, 177 insertions(+), 43 deletions(-)



Message-ID: <E1ly2fW-0002al-0y@gemulon.postgresql.org>
Permalink:  ../E1ly2fW-0002al-0y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ly2fW-0002al-0y@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: noah@leadboat.com
  Subject: Re: pgsql: Dump public schema ownership and security labels.
  In-Reply-To: <E1ly2fW-0002al-0y@gemulon.postgresql.org>
  References: <E1ly2fW-0002al-0y@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