postgresql/src/bin/pg_dump
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
..
po Translation updates 2019-06-17 15:30:20 +02:00
t Use libc version as a collation version on glibc systems. 2019-10-16 17:28:24 +13:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
Makefile Update copyright for 2019 2019-01-02 12:44:25 -05:00
common.c Fix parallel restore of FKs to partitioned tables 2019-10-17 09:58:01 +02:00
compress_io.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
compress_io.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
dumputils.c Use appendStringInfoString and appendPQExpBufferStr where possible 2019-07-04 13:01:13 +12:00
dumputils.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
nls.mk Fix gettext triggers specification 2019-08-26 19:06:01 +02:00
parallel.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
parallel.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
pg_backup.h Remove unused C structure member 2019-07-08 19:31:16 -04:00
pg_backup_archiver.c Fix inconsistencies and typos in the tree, take 10 2019-08-13 13:53:41 +09:00
pg_backup_archiver.h Remove more unreferenced function declarations 2019-07-07 09:58:33 +09:00
pg_backup_custom.c Initial pgindent run for v12. 2019-05-22 12:55:34 -04:00
pg_backup_db.c Message style improvements 2019-07-09 15:47:09 +02:00
pg_backup_db.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
pg_backup_directory.c Fix typos. 2019-05-24 12:00:59 +12:00
pg_backup_null.c Fix typos. 2019-05-24 12:00:59 +12:00
pg_backup_tar.c Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_backup_utils.h Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00
pg_dump.c Fix parallel restore of FKs to partitioned tables 2019-10-17 09:58:01 +02:00
pg_dump.h Fix parallel restore of FKs to partitioned tables 2019-10-17 09:58:01 +02:00
pg_dump_sort.c Install dependencies to prevent dropping partition key columns. 2019-07-22 14:55:40 -04:00
pg_dumpall.c Message style improvements 2019-07-09 15:47:09 +02:00
pg_restore.c Fix inconsistencies and typos in the tree, take 9 2019-08-05 12:14:58 +09:00