postgresql/contrib/dblink
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
..
expected Adjust assorted hint messages that list all valid options. 2022-09-16 14:53:12 +02:00
sql Merge dblink's paths test script into its main test. 2021-12-20 16:49:13 -05:00
.gitignore
dblink--1.0--1.1.sql
dblink--1.1--1.2.sql
dblink--1.2.sql
dblink.c Refactor aclcheck functions 2022-11-13 09:02:41 +01:00
dblink.control
Makefile Merge dblink's paths test script into its main test. 2021-12-20 16:49:13 -05:00
meson.build meson: Add windows resource files 2022-10-05 09:56:05 -07:00
pg_service.conf