citus/src/backend/distributed
Naisila Puka 43a540cff1 Use RelationGetPrimaryKeyIndex for citus catalog tables (#6262)
pg_dist_node and pg_dist_colocation have a primary key index, not a replica identity index.

Citus catalog tables are created in public schema, which has replica identity index by default 
as primary key index. Later the citus catalog tables are moved to pg_catalog schema.

During pg_upgrade, all tables are recreated, and given that pg_dist_colocation is found in
pg_catalog schema, it is recreated in that schema, and when it is recreated it doesn't
have a replica identity index, because catalog tables have no replica identity.

Further action:
Do we even need to acquire this lock on the primary key index?
Postgres doesn't acquire such locks on indexes before deleting catalog tuples.
Also, catalog tuples don't have replica identities by definition.
2022-09-22 13:27:47 +03:00
..
commands Fixes the bug where undistribute can drop Citus extension 2022-06-13 15:44:21 +03:00
connection Use a fixed application_name while connecting to remote nodes 2022-01-27 13:00:02 +01:00
deparser CLUSTER ON deparser should consider schemas (#5122) 2021-07-16 19:16:37 +03:00
executor Guard against hard WaitEvenSet errors 2021-08-10 09:36:11 +02:00
metadata Use RelationGetPrimaryKeyIndex for citus catalog tables (#6262) 2022-09-22 13:27:47 +03:00
operations Fix crash in shard rebalancer when no distributed tables exist (#5205) 2021-09-01 11:55:31 +02:00
planner Fix coordinator/worker query targetlists for agg. that we cannot push-down (#5679) 2022-02-07 11:40:56 +03:00
progress Avoid two race conditions in the rebalance progress monitor (#5050) 2021-07-14 19:06:32 +03:00
relay Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
sql Fix master_update_table_statistics scripts for 9.5 2021-08-03 16:46:05 +03:00
test Not include to-be-deleted shards while finding shard placements 2021-07-14 19:28:32 +03:00
transaction Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
utils Use RelationGetPrimaryKeyIndex for citus catalog tables (#6262) 2022-09-22 13:27:47 +03:00
worker Avoid switch to superuser in worker_merge_files_into_table 2021-09-09 14:11:48 +02:00
.gitignore Change SQL migration build process for easier reviews (#2951) 2019-09-13 18:44:27 +02:00
Makefile Fix minor issues with makefile targets (#4717) 2021-04-28 15:46:55 +03:00
citus.control Bump Citus to 10.1devel 2021-02-17 11:54:33 +03:00
safeclib Compile safestringlib using regular configure 2020-03-19 11:52:20 +01:00
shared_library_init.c Use "orphaned shards" naming in more places 2021-06-04 11:39:19 +02:00