Add new catalog called pg_init_privs
Stephen Frost <sfrost@snowman.net>
Add new catalog called pg_init_privs This new catalog holds the privileges which the system was initialized with at initdb time, along with any permissions set by extensions at CREATE EXTENSION time. This allows pg_dump (and any other similar use-cases) to detect when the privileges set on initdb-created or extension-created objects have been changed from what they were set to at initdb/extension-creation time and handle those changes appropriately. Reviews by Alexander Korotkov, Jose Luis Tallon
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +108 −0 |
| src/backend/catalog/aclchk.c | modified | +149 −0 |
| src/backend/catalog/dependency.c | modified | +43 −3 |
| src/backend/catalog/Makefile | modified | +1 −1 |
| src/bin/initdb/initdb.c | modified | +143 −0 |
| src/include/catalog/indexing.h | modified | +3 −0 |
| src/include/catalog/pg_init_privs.h | added | +101 −0 |
| src/test/regress/expected/sanity_check.out | modified | +1 −0 |