From 92880ff8a667f755aa04b54e5cb2c4388c924052 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 6 May 2019 12:23:49 -0400 Subject: [PATCH] Revert "Make pg_dump emit ATTACH PARTITION instead of PARTITION OF" ... and fallout (from branches 10, 11 and master). The change was ill-considered, and it broke a few normal use cases; since we don't have time to fix it, we'll try again after this week's minor releases. Reported-by: Rushabh Lathia Discussion: https://postgr.es/m/CAGPqQf0iQV=PPOv2Btog9J9AwOQp6HmuVd6SbGTR_v3Zp2XT1w@mail.gmail.com --- doc/src/sgml/release-11.sgml | 23 ------ src/bin/pg_dump/pg_dump.c | 123 ++++++++++++++++++------------- src/bin/pg_dump/t/002_pg_dump.pl | 12 +-- 3 files changed, 75 insertions(+), 83 deletions(-) diff --git a/doc/src/sgml/release-11.sgml b/doc/src/sgml/release-11.sgml index 373b8de09ac..e9ce1ee9253 100644 --- a/doc/src/sgml/release-11.sgml +++ b/doc/src/sgml/release-11.sgml @@ -1053,29 +1053,6 @@ Branch: REL9_4_STABLE [12c42a543] 2019-04-11 21:06:21 +0200 - - Make pg_dump recreate table partitions - using ATTACH PARTITION instead - of CREATE TABLE ... PARTITION OF (David Rowley) - - - - This avoids various corner-case problems, notably that dump and - restore might unexpectedly alter a partition's column ordering. - It also means that a selective restore of the partition can succeed - even if its parent partitioned table isn't restored. - (The ATTACH PARTITION will fail of course, but - the partition table itself can be created and populated.) - - - - -