]> granicus.if.org Git - postgresql/commit
Add new catalog called pg_init_privs
authorStephen Frost <sfrost@snowman.net>
Thu, 7 Apr 2016 01:45:32 +0000 (21:45 -0400)
committerStephen Frost <sfrost@snowman.net>
Thu, 7 Apr 2016 01:45:32 +0000 (21:45 -0400)
commit6c268df1276e9dd73e4d2cc89cf8787e8f186bda
tree7ed004762c6ca1e8114f2919ca9d781d31c5579c
parent0b62fd036e1ac48a8432bb9664b21e1f036c1b08
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
doc/src/sgml/catalogs.sgml
src/backend/catalog/Makefile
src/backend/catalog/aclchk.c
src/backend/catalog/dependency.c
src/bin/initdb/initdb.c
src/include/catalog/indexing.h
src/include/catalog/pg_init_privs.h [new file with mode: 0644]
src/test/regress/expected/sanity_check.out