Allow makeaclitem() to accept multiple privilege names.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Jul 2022 20:49:12 +0000 (16:49 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Jul 2022 20:49:24 +0000 (16:49 -0400)
commitb762bbde30d21d6a091d44cc2cbbfb1c9550be52
tree6e0ad942b1746a0670560fce3b48964f3f1def02
parentb6a5158f98fd5158f66943d721061418f183b370
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
doc/src/sgml/func.sgml
src/backend/utils/adt/acl.c
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql