Allow makeaclitem() to accept multiple privilege names.
Tom Lane <tgl@sss.pgh.pa.us>
Allow makeaclitem() to accept multiple privilege names. Interpret its privileges argument as a comma-separated list of privilege names, as in has_table_privilege and other functions. This is actually net less code, since the support routine to parse that already exists, and we can drop convert_priv_string() which had no other use-case. Robins Tharakan Discussion: https://postgr.es/m/e5a05dc54ba64408b3dd260171c1abaf@EX13D05UWC001.ant.amazon.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +8 −1 |
| src/backend/utils/adt/acl.c | modified | +20 −46 |
| src/test/regress/expected/privileges.out | modified | +18 −0 |
| src/test/regress/sql/privileges.sql | modified | +8 −0 |
Documentation touched
Discussion
- Allow makeaclitem() to accept multiple privileges 2 messages · 2022-05-27 → 2022-07-03