Refactor recordExtObjInitPriv()

Peter Eisentraut <peter@eisentraut.org>

Commit: 2a1d7071c4ed750abb8b39436bb89c7d152bddb8
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-01-17T19:06:06Z
Releases: 16.0
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@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/504bc485-6bd6-dd1b-fe10-e7351aeb310d@enterprisedb.com

Files

PathChange+/−
src/backend/catalog/aclchk.c modified +8 −144

Discussion