citus/src/backend
Naisila Puka 498131b4f6 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 12:50:11 +03:00
..
columnar Bugfix for IN clause to be considered during planner phase in Columnar (#6030) 2022-07-29 17:56:24 +02:00
distributed Use RelationGetPrimaryKeyIndex for citus catalog tables (#6262) 2022-09-22 12:50:11 +03:00
.gitignore Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00