Refactor recordExtObjInitPriv()
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 17 Jan 2023 19:03:35 +0000 (20:03 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 17 Jan 2023 19:06:06 +0000 (20:06 +0100)
commit2a1d7071c4ed750abb8b39436bb89c7d152bddb8
tree5b40fd0fea3cfa6875b82778335322be75511a2c
parent13b345df6438f222daf56eee86cb272628d1f1c3
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
src/backend/catalog/aclchk.c