Drop foreign key from pg_dist_poolinfo to pg_dist_node

pull/2933/head
Marco Slot 2019-09-04 11:19:01 +02:00
parent e132d579f2
commit 810aca8d41
1 changed files with 7 additions and 0 deletions

View File

@ -224,3 +224,10 @@ $cppu$;
COMMENT ON FUNCTION pg_catalog.citus_finish_pg_upgrade() COMMENT ON FUNCTION pg_catalog.citus_finish_pg_upgrade()
IS 'perform tasks to restore citus settings from a location that has been prepared before pg_upgrade'; IS 'perform tasks to restore citus settings from a location that has been prepared before pg_upgrade';
/*
* We truncate pg_dist_node during metadata syncing, but we do not want
* this to cascade to pg_dist_poolinfo, which is generally maintained
* by the operator.
*/
ALTER TABLE pg_dist_poolinfo DROP CONSTRAINT pg_dist_poolinfo_nodeid_fkey;