pgsql: Fix parallel restore of FKs to partitioned tables

2019-10-17 Thread Alvaro Herrera
Fix parallel restore of FKs to partitioned tables When an FK constraint is created, it needs the index on the referenced table to exist and be valid. When doing parallel pg_restore and the referenced table was partitioned, this condition can sometimes not be met, because pg_dump didn't emit suffi

pgsql: Fix parallel restore of FKs to partitioned tables

2019-10-17 Thread Alvaro Herrera
Fix parallel restore of FKs to partitioned tables When an FK constraint is created, it needs the index on the referenced table to exist and be valid. When doing parallel pg_restore and the referenced table was partitioned, this condition can sometimes not be met, because pg_dump didn't emit suffi