pgsql: Allow makeaclitem() to accept multiple privilege names.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow makeaclitem() to accept multiple privilege names.
Date: 2022-07-03 20:49:50
Message-ID: E1o86XN-0013Le-0c@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b762bbde30d21d6a091d44cc2cbbfb1c9550be52

Modified Files
--------------
doc/src/sgml/func.sgml | 9 ++++-
src/backend/utils/adt/acl.c | 66 ++++++++++----------------------
src/test/regress/expected/privileges.out | 18 +++++++++
src/test/regress/sql/privileges.sql | 8 ++++
4 files changed, 54 insertions(+), 47 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2022-07-03 21:26:28 pgsql: Remove %error-verbose directive from jsonpath parser
Previous Message Noah Misch 2022-07-03 20:08:29 pgsql: Add Windows file version information to libpq/test programs.