postgresql/src/fe_utils
Alvaro Herrera 1752e35163 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 sufficient object dependencies to
ensure so; this means that parallel pg_restore would fail in certain
conditions.  Fix by having pg_dump make the FK constraint object
dependent on the partition attachment objects for the constraint's
referenced index.

This has been broken since f56f8f8da6, so backpatch to Postgres 12.

Discussion: https://postgr.es/m/20191005224333.GA9738@alvherre.pgsql
2019-10-17 09:58:01 +02:00
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
Makefile Split out recovery confing-writing code from pg_basebackup 2019-09-25 14:35:24 -03:00
conditional.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
mbprint.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
print.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
psqlscan.l Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
recovery_gen.c Split out recovery confing-writing code from pg_basebackup 2019-09-25 14:35:24 -03:00
simple_list.c Fix parallel restore of FKs to partitioned tables 2019-10-17 09:58:01 +02:00
string_utils.c Use appendStringInfoString and appendPQExpBufferStr where possible 2019-07-04 13:01:13 +12:00