pgsql: Refactor ExecGrant_*() functions

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor ExecGrant_*() functions
Date: 2022-12-13 06:53:12
Message-ID: E1p4zA7-003L3t-P1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor ExecGrant_*() functions

Instead of half a dozen of mostly-duplicate ExecGrant_Foo() functions,
write one common function ExecGrant_generic() that can handle most of
them. We already have all the information we need, such as which
system catalog corresponds to which catalog table and which column is
the ACL column.

Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-by: Antonin Houska <ah(at)cybertec(dot)at>
Discussion: https://www.postgresql.org/message-id/flat/22c7e802-4e7d-8d87-8b71-cba95e6f4bcf%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/369f09e420efe27359b06b69c0265f4aec5c2134

Modified Files
--------------
src/backend/catalog/aclchk.c | 1050 +++++-------------------------------------
1 file changed, 124 insertions(+), 926 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-12-13 09:41:00 pgsql: basebackup_to_shell: Add some const qualifiers for consistency
Previous Message Tom Lane 2022-12-12 21:18:02 pgsql: Fix jsonb subscripting to cope with toasted subscript values.