]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_dump: fix mis-dumping of non-global default privileges.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Oct 2021 19:22:25 +0000 (15:22 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Oct 2021 19:22:25 +0000 (15:22 -0400)
commit3ad2c2455be0bd42f1ca22907850b93c3afc575b
treeffa000632f0b1eda2c429d4c2ca232240eca5320
parent52c0c11367fdac78a59997de2b24031c0501fbe7
pg_dump: fix mis-dumping of non-global default privileges.

Non-global default privilege entries should be dumped as-is,
not made relative to the default ACL for their object type.
This would typically only matter if one had revoked some
on-by-default privileges in a global entry, and then wanted
to grant them again in a non-global entry.

Per report from Boris Korzun.  This is an old bug, so back-patch
to all supported branches.

Neil Chen, test case by Masahiko Sawada

Discussion: https://postgr.es/m/111621616618184@mail.yandex.ru
Discussion: https://postgr.es/m/CAA3qoJnr2+1dVJObNtfec=qW4Z0nz=A9+r5bZKoTSy5RDjskMw@mail.gmail.com
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/t/002_pg_dump.pl