postgresql/src
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
..
backend When restoring GUCs in parallel workers, show an error context. 2019-10-17 13:47:01 +13:00
bin Fix parallel restore of FKs to partitioned tables 2019-10-17 09:58:01 +02:00
common Update unicode.org URLs 2019-10-13 22:10:38 +02:00
fe_utils Fix parallel restore of FKs to partitioned tables 2019-10-17 09:58:01 +02:00
include Fix parallel restore of FKs to partitioned tables 2019-10-17 09:58:01 +02:00
interfaces Fix use of term "verifier" 2019-10-12 21:41:59 +02:00
makefiles Remove support for non-ELF BSD systems 2019-07-01 23:56:20 +01:00
pl Simplify PGAC_STRUCT_TIMEZONE Autoconf macro 2019-10-07 16:47:23 +02:00
port In the postmaster, rely on the signal infrastructure to block signals. 2019-10-13 15:48:26 -04:00
template AIX: Stop adding option -qsrcmsg. 2019-10-12 00:21:47 -07:00
test Replace alter_table.sql test usage of event triggers. 2019-10-16 02:37:34 -07:00
timezone Update time zone data files to tzdata release 2019c. 2019-09-20 19:53:33 -04:00
tools Remove some code for old unsupported versions of MSVC 2019-10-08 10:50:54 +02:00
tutorial Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Don't disable ccache when building with coverage support 2019-09-24 10:00:56 +02:00
Makefile.shlib Remove support for non-ELF BSD systems 2019-07-01 23:56:20 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00