diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-12-13 07:43:42 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-12-13 07:52:04 +0100 |
commit | 369f09e420efe27359b06b69c0265f4aec5c2134 (patch) | |
tree | f40120ce484fb681cf0372c32233224bf44327a6 /src/backend/tcop/postgres.c | |
parent | b0feda79fdf02710a6039a324299525845a4a9d4 (diff) | |
download | postgresql-369f09e420efe27359b06b69c0265f4aec5c2134.tar.gz postgresql-369f09e420efe27359b06b69c0265f4aec5c2134.zip |
Refactor ExecGrant_*() functions
Instead of half a dozen of mostly-duplicate ExecGrant_Foo() functions,
write one common function ExecGrant_generic() that can handle most 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.
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Antonin Houska <ah@cybertec.at>
Discussion: https://www.postgresql.org/message-id/flat/22c7e802-4e7d-8d87-8b71-cba95e6f4bcf%40enterprisedb.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions