citus/src/backend/distributed/operations
Onder Kalaci 2c349e6dfd Use current user to sync metadata
Before this commit, we always synced the metadata with superuser.
However, that creates various edge cases such as visibility errors
or self distributed deadlocks or complicates user access checks.

Instead, with this commit, we use the current user to sync the metadata.
Note that, `start_metadata_sync_to_node` still requires super user
because accessing certain metadata (like pg_dist_node) always require
superuser (e.g., the current user should be a superuser).

However, metadata syncing operations regarding the distributed
tables can now be done with regular users, as long as the user
is the owner of the table. A table owner can still insert non-sense
metadata, however it'd only affect its own table. So, we cannot do
anything about that.
2021-07-16 13:25:27 +02:00
..
citus_create_restore_point.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
citus_tools.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
create_shards.c Not include to-be-deleted shards while finding shard placements 2021-06-28 13:05:31 +03:00
delete_protocol.c Not include to-be-deleted shards while finding shard placements 2021-06-28 13:05:31 +03:00
modify_multiple_shards.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
node_protocol.c Get ready for Improve index backed constraint creation for online rebalancer 2021-06-17 13:05:56 +03:00
partitioning.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
repair_shards.c Use current user to sync metadata 2021-07-16 13:25:27 +02:00
shard_cleaner.c Use "orphaned shards" naming in more places 2021-06-04 11:39:19 +02:00
shard_rebalancer.c Only allow moves of shards of distributed tables (#5072) 2021-06-23 16:25:46 +02:00
split_shards.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
stage_protocol.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
worker_node_manager.c COPY uses adaptive connection management on local node 2021-02-04 09:45:07 +01:00