refactor ownercheck and aclcheck functions
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-10-14T07:39:26Z
Lists: pgsql-hackers
Attachments
- 0001-Refactor-ownercheck-functions.patch (text/plain) patch 0001
- 0002-Refactor-aclcheck-functions.patch (text/plain) patch 0002
These patches take the dozens of mostly-duplicate pg_foo_ownercheck() and pg_foo_aclcheck() functions and replace (most of) them by common functions that are driven by the ObjectProperty table. All the required information is already in that table. This is similar to the consolidation of the drop-by-OID functions that we did a while ago (b1d32d3e3230f00b5baba08f75b4f665c7d6dac6).
Commits
-
Refactor aclcheck functions
- c727f511bd7b 16.0 landed
-
Refactor ownercheck functions
- afbfc02983f8 16.0 landed
-
Unify drop-by-OID functions
- b1d32d3e3230 14.0 cited