postgresql/src/bin/pg_dump
Tom Lane a0ffa885e4 Allow granting SET and ALTER SYSTEM privileges on GUC parameters.
This patch allows "PGC_SUSET" parameters to be set by non-superusers
if they have been explicitly granted the privilege to do so.
The privilege to perform ALTER SYSTEM SET/RESET on a specific parameter
can also be granted.
Such privileges are cluster-wide, not per database.  They are tracked
in a new shared catalog, pg_parameter_acl.

Granting and revoking these new privileges works as one would expect.
One caveat is that PGC_USERSET GUCs are unaffected by the SET privilege
--- one could wish that those were handled by a revocable grant to
PUBLIC, but they are not, because we couldn't make it robust enough
for GUCs defined by extensions.

Mark Dilger, reviewed at various times by Andrew Dunstan, Robert Haas,
Joshua Brindle, and myself

Discussion: https://postgr.es/m/3D691E20-C1D5-4B80-8BA5-6BEB63AF3029@enterprisedb.com
2022-04-06 13:24:33 -04:00
..
po Translation updates 2021-06-21 12:33:50 +02:00
t Extend TAP tests of pg_dump to test for compression with gzip 2022-04-05 19:10:10 +09:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
compress_io.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
compress_io.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
dumputils.c Allow granting SET and ALTER SYSTEM privileges on GUC parameters. 2022-04-06 13:24:33 -04:00
dumputils.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
Makefile Extend TAP tests of pg_dump to test for compression with gzip 2022-04-05 19:10:10 +09:00
nls.mk Translation updates 2021-05-10 14:36:21 +02:00
parallel.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
parallel.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_backup.h Add support for --no-table-access-method in pg_{dump,dumpall,restore} 2022-01-17 14:51:46 +09:00
pg_backup_archiver.c Free temporary memory when reading TOC 2022-02-09 14:12:55 +01:00
pg_backup_archiver.h contrib/sslinfo needs a fix too to make hamerkop happy. 2021-11-07 11:33:53 -05:00
pg_backup_custom.c Yet more elimination of dead stores and useless initializations. 2020-09-05 13:17:32 -04:00
pg_backup_db.c Clean up some more freshly-dead code in pg_dump and pg_upgrade. 2021-12-16 12:01:59 -05:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:04 -05:00
pg_backup_directory.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_backup_null.c Remove useless "return;" lines 2019-11-28 16:48:37 -03:00
pg_backup_tar.c Clean up some dead code in pg_dump with tar format and gzip compression 2022-03-31 10:34:10 +09:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_backup_utils.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_dump.c Allow specifying column lists for logical replication 2022-03-26 01:01:27 +01:00
pg_dump.h Allow specifying column lists for logical replication 2022-03-26 01:01:27 +01:00
pg_dump_sort.c Fix bogus dependency handling for GENERATED expressions. 2022-03-21 14:58:49 -04:00
pg_dumpall.c Allow granting SET and ALTER SYSTEM privileges on GUC parameters. 2022-04-06 13:24:33 -04:00
pg_restore.c Add support for --no-table-access-method in pg_{dump,dumpall,restore} 2022-01-17 14:51:46 +09:00