postgresql/src/backend
Peter Eisentraut afbfc02983 Refactor ownercheck functions
Instead of dozens of mostly-duplicate pg_foo_ownercheck() functions,
write one common function object_ownercheck() 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 owner column.

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 08:12:37 +01:00
..
access Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
backup Rename shadowed local variables 2022-10-05 21:01:41 +13:00
bootstrap Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
catalog Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
commands Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
executor Add repalloc0 and repalloc0_array 2022-11-12 20:34:44 +01:00
foreign Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:35 +09:00
jit Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
lib Add doubly linked count list implementation 2022-11-02 14:06:05 +13:00
libpq Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
main meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nodes Use proper macro to access TransactionId 2022-10-20 09:41:03 +02:00
optimizer Add repalloc0 and repalloc0_array 2022-11-12 20:34:44 +01:00
parser Add repalloc0 and repalloc0_array 2022-11-12 20:34:44 +01:00
partitioning Resolve partition strategy during early parsing 2022-11-03 16:25:54 +01:00
po meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
port Provide sigaction() for Windows. 2022-11-09 13:06:31 +13:00
postmaster Provide sigaction() for Windows. 2022-11-09 13:06:31 +13:00
regex Remove uses of register due to incompatibility with C++17 and up 2022-09-24 12:08:37 -07:00
replication Fix comments atop ReorderBufferAddInvalidations. 2022-11-10 16:56:49 +05:30
rewrite Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
snowball meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
statistics Rename shadowed local variables 2022-10-05 21:01:41 +13:00
storage Add repalloc0 and repalloc0_array 2022-11-12 20:34:44 +01:00
tcop Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
tsearch Introduce t_isalnum() to replace t_isalpha() || t_isdigit() tests. 2022-10-06 11:08:56 -04:00
utils Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
.gitignore
Makefile Move gramparse.h to src/backend/parser 2022-09-14 10:57:13 +07:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
nls.mk NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00