postgresql/src/backend/tcop
Peter Eisentraut c727f511bd Refactor aclcheck functions
Instead of dozens of mostly-duplicate pg_foo_aclcheck() functions,
write one common function object_aclcheck() that can handle almost all
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.

There are a few pg_foo_aclcheck() that don't work via the generic
function and have special APIs, so those stay as is.

I also changed most pg_foo_aclmask() functions to static functions,
since they are not used outside of aclchk.c.

Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Antonin Houska <ah@cybertec.at>
Discussion: https://www.postgresql.org/message-id/flat/95c30f96-4060-2f48-98b5-a4392d3b6066@enterprisedb.com
2022-11-13 09:02:41 +01:00
..
Makefile Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
cmdtag.c Add 'static' to file-local variables missing it. 2022-05-12 12:39:33 -07:00
dest.c Fix incorrect comment regarding command completion tags 2022-10-14 14:32:00 +13:00
fastpath.c Refactor aclcheck functions 2022-11-13 09:02:41 +01:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
postgres.c Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
pquery.c Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
utility.c Add optional parameter to PG_TRY() macros 2022-10-06 10:08:31 +13:00