postgresql/src/include/parser
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
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
analyze.h Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
gramparse.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
kwlist.h Allow granting SET and ALTER SYSTEM privileges on GUC parameters. 2022-04-06 13:24:33 -04:00
parse_agg.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_clause.h JSON_TABLE 2022-04-04 16:03:47 -04:00
parse_coerce.h Fix failure to validate the result of select_common_type(). 2022-01-29 11:41:18 -05:00
parse_collate.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_cte.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_enr.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_expr.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_func.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_merge.h Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
parse_node.h Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
parse_oper.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_param.h Parse/analyze function renaming 2022-03-04 14:50:22 +01:00
parse_relation.h Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
parse_target.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_type.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_utilcmd.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parser.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parsetree.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
scanner.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
scansup.h Update copyright for 2022 2022-01-07 19:04:57 -05:00