Thread: pgsql: Dump public schema ownership and security labels.

pgsql: Dump public schema ownership and security labels.

From
Noah Misch
Date:
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(-)