Merge pull request #2933 from citusdata/drop_poolinfo_fk

Drop foreign key from pg_dist_poolinfo to pg_dist_node
pull/2938/head
Marco Slot 2019-09-12 11:50:05 +02:00 committed by GitHub
commit d69be38932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()
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;