postgresql/src/backend/catalog
Peter Eisentraut d31bbfb659 Proper object locking for GRANT/REVOKE
Refactor objectNamesToOids() to use get_object_address() internally if
possible.  Not only does this save a lot of code, it also allows us to
use the object locking provided by get_object_address() for
GRANT/REVOKE.  There was previously a code comment that complained
about the lack of locking in objectNamesToOids(), which is now fixed.

The check in ExecGrant_Type_check() is obsolete because
get_object_address_type() already does the same check.

Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/bf72b82c-124d-4efa-a484-bb928e9494e4@eisentraut.org
2024-11-15 11:03:48 +01:00
..
aclchk.c Proper object locking for GRANT/REVOKE 2024-11-15 11:03:48 +01:00
catalog.c For inplace update durability, make heap_update() callers wait. 2024-09-24 15:25:18 -07:00
Catalog.pm Pre-beta mechanical code beautification. 2024-05-14 16:34:50 -04:00
dependency.c Clean out column-level pg_init_privs entries when dropping tables. 2024-06-14 16:20:35 -04:00
genbki.pl Generate syscache info from catalog files 2024-01-23 07:31:06 +01:00
heap.c Add pg_constraint rows for not-null constraints 2024-11-08 13:28:48 +01:00
index.c Suppress new "may be used uninitialized" warning. 2024-11-02 19:42:52 -07:00
indexing.c Revert: Let table AM insertion methods control index insertion 2024-04-11 16:01:30 +03:00
information_schema.sql Add pg_constraint rows for not-null constraints 2024-11-08 13:28:48 +01:00
Makefile Put genbki.pl output into src/include/catalog/ directly 2024-03-14 07:11:21 +01:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
namespace.c Fix search_path cache initialization. 2024-10-07 17:51:14 -07:00
objectaccess.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
objectaddress.c Add an assertion in get_object_address() 2024-11-15 08:52:43 +01:00
partition.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_aggregate.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_attrdef.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_cast.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_class.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_collation.c Introduce "builtin" collation provider. 2024-03-13 23:33:44 -07:00
pg_constraint.c Silence compilers about extractNotNullColumn() 2024-11-12 11:35:43 +01:00
pg_conversion.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_db_role_setting.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_depend.c Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
pg_enum.c Allow more cases to pass the unsafe-use-of-new-enum-value restriction. 2024-03-24 14:30:29 -04:00
pg_inherits.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_largeobject.c Deduplicate code in LargeObjectExists and myLargeObjectExists. 2024-09-12 21:45:42 +09:00
pg_namespace.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_operator.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_parameter_acl.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_proc.c Separate equalRowTypes() from equalTupleDescs() 2024-03-17 05:58:04 +01:00
pg_publication.c Replicate generated columns when 'publish_generated_columns' is set. 2024-11-07 08:58:49 +05:30
pg_range.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_shdepend.c Improve tracking of role dependencies of pg_init_privs entries. 2024-06-17 12:55:10 -04:00
pg_subscription.c Refactor code converting a publication name List to a StringInfo 2024-10-25 12:02:04 +09:00
pg_type.c Explicitly list dependent types as extension members in pg_depend. 2024-03-04 14:49:36 -05:00
sql_feature_packages.txt Update SQL features 2023-05-02 10:59:21 +02:00
sql_features.txt JSON_TABLE: Add support for NESTED paths and columns 2024-04-08 16:14:13 +09:00
storage.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
system_functions.sql Revert pg_wal_replay_wait() stored procedure 2024-11-04 22:47:57 +02:00
system_views.sql Add two attributes to pg_stat_database for parallel workers activity 2024-11-11 10:40:48 +09:00
toasting.c Fix data loss at inplace update after heap_update(). 2024-09-24 15:25:18 -07:00