From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow makeaclitem() to accept multiple privilege names.
Date: Sun, 03 Jul 2022 20:49:50 +0000
Message-ID: <E1o86XN-0013Le-0c@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Allow makeaclitem() to accept multiple privilege names.
In-Reply-To: <E1o86XN-0013Le-0c@gemulon.postgresql.org>
References: <E1o86XN-0013Le-0c@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox