Thread
Commits
-
Doc: fix minor oversight in ALTER DEFAULT PRIVILEGES ref page.
- 6d4a17010740 12.19 landed
- 54aba936da98 13.15 landed
- 6189a0d3795e 14.12 landed
- 5e85bc3b0189 15.7 landed
- cd0678a9bbdb 16.3 landed
- e51c2a46b54e 17.0 landed
-
Small filx on the documentation of ALTER DEFAULT PRIVILEGES
Yugo Nagata <nagata@sraoss.co.jp> — 2024-04-24T06:50:52Z
Hi, Hi, We can specify more than one privilege type in "ALTER DEFAULT PRIVILEGES GRANT/REVOKE ON SCHEMAS", for example, ALTER DEFAULT PRIVILEGES GRANT USAGE,CREATE ON SCHEMAS TO PUBLIC; However, the syntax described in the documentation looks to be allowing only one, GRANT { USAGE | CREATE | ALL [ PRIVILEGES ] } ON SCHEMAS TO { [ GROUP ] role_name | PUBLIC } [, ...] [ WITH GRANT OPTION ] while the syntaxes for tables and sequences are described correctly. e.g. GRANT { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER } [, ...] | ALL [ PRIVILEGES ] } ON TABLES TO { [ GROUP ] role_name | PUBLIC } [, ...] [ WITH GRANT OPTION ] I attached a small patch to fix the description. Regards, Yugo Nagata -- Yugo NAGATA <nagata@sraoss.co.jp> -
Re: Small filx on the documentation of ALTER DEFAULT PRIVILEGES
Tom Lane <tgl@sss.pgh.pa.us> — 2024-04-24T13:57:04Z
Yugo NAGATA <nagata@sraoss.co.jp> writes: > We can specify more than one privilege type in > "ALTER DEFAULT PRIVILEGES GRANT/REVOKE ON SCHEMAS", > for example, > ALTER DEFAULT PRIVILEGES GRANT USAGE,CREATE ON SCHEMAS TO PUBLIC; > However, the syntax described in the documentation looks to > be allowing only one, > GRANT { USAGE | CREATE | ALL [ PRIVILEGES ] } > ON SCHEMAS > TO { [ GROUP ] role_name | PUBLIC } [, ...] [ WITH GRANT OPTION ] > while the syntaxes for tables and sequences are described correctly. Yup, you're right. I'll push this shortly. regards, tom lane