postgresql/src
Noah Misch f713ff7c64 Fix pg_dump for GRANT OPTION among initial privileges.
The context is an object that no longer bears some aclitem that it bore
initially.  (A user issued REVOKE or GRANT statements upon the object.)
pg_dump is forming SQL to reproduce the object ACL.  Since initdb
creates no ACL bearing GRANT OPTION, reaching this bug requires an
extension where the creation script establishes such an ACL.  No PGXN
extension does that.  If an installation did reach the bug, pg_dump
would have omitted a semicolon, causing a REVOKE and the next SQL
statement to fail.  Separately, since the affected code exists to
eliminate an entire aclitem, it wants plain REVOKE, not REVOKE GRANT
OPTION FOR.  Back-patch to 9.6, where commit
23f34fa4ba first appeared.

Discussion: https://postgr.es/m/20210109102423.GA160022@rfd.leadboat.com
2021-01-16 12:21:35 -08:00
..
backend Prevent excess SimpleLruTruncate() deletion. 2021-01-16 12:21:35 -08:00
bin Fix pg_dump for GRANT OPTION among initial privileges. 2021-01-16 12:21:35 -08:00
common Rework refactoring of hex and encoding routines 2021-01-14 11:13:24 +09:00
fe_utils Update copyright for 2021 2021-01-02 13:06:25 -05:00
include Prevent excess SimpleLruTruncate() deletion. 2021-01-16 12:21:35 -08:00
interfaces Try next host after a "cannot connect now" failure. 2021-01-11 14:12:31 -05:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Fix plpgsql tests for debug_invalidate_system_caches_always. 2021-01-08 18:12:07 -05:00
port Move our p{read,write}v replacements into their own files. 2021-01-14 11:16:59 +13:00
template Improve our heuristic for selecting PG_SYSROOT on macOS. 2021-01-15 11:28:51 -05:00
test Fix pg_dump for GRANT OPTION among initial privileges. 2021-01-16 12:21:35 -08:00
timezone Update copyright for 2021 2021-01-02 13:06:25 -05:00
tools Rework refactoring of hex and encoding routines 2021-01-14 11:13:24 +09:00
tutorial Doc, more or less: uncomment tutorial example that was fixed long ago. 2021-01-13 16:00:03 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Split Makefile symbol CFLAGS_VECTOR into two symbols. 2020-09-06 21:28:16 -04:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00