pgsql: Refactor recordExtObjInitPriv()

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor recordExtObjInitPriv()
Date: 2023-01-17 19:14:29
Message-ID: E1pHrPg-004AkX-Rp@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor recordExtObjInitPriv()

Instead of half a dozen of mostly-duplicate conditional branches,
write one common one that can handle most catalogs. 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: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/504bc485-6bd6-dd1b-fe10-e7351aeb310d(at)enterprisedb(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2a1d7071c4ed750abb8b39436bb89c7d152bddb8

Modified Files
--------------
src/backend/catalog/aclchk.c | 152 +++----------------------------------------
1 file changed, 8 insertions(+), 144 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-01-17 21:01:55 pgsql: AdjustUpgrade.pm should zap test_ext_cine, too.
Previous Message John Naylor 2023-01-17 07:32:17 pgsql: Remove redundant relkind check