1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

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
This commit is contained in:
Alvaro Herrera
2019-05-06 12:23:49 -04:00
parent dcbdd1a8d5
commit 92880ff8a6
3 changed files with 75 additions and 83 deletions

View File

@ -1053,29 +1053,6 @@ Branch: REL9_4_STABLE [12c42a543] 2019-04-11 21:06:21 +0200
<listitem>
<!--
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [3b23552ad] 2019-04-24 15:30:37 -0400
Branch: REL_11_STABLE [a98c48deb] 2019-04-24 15:30:37 -0400
Branch: REL_10_STABLE [5a191f697] 2019-04-24 15:30:37 -0400
-->
<para>
Make <application>pg_dump</application> recreate table partitions
using <command>ATTACH PARTITION</command> instead
of <command>CREATE TABLE ... PARTITION OF</command> (David Rowley)
</para>
<para>
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 <command>ATTACH PARTITION</command> will fail of course, but
the partition table itself can be created and populated.)
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [a7eadaaaa] 2019-03-18 10:34:45 +0900
Branch: REL_11_STABLE [dcf2a0db8] 2019-03-18 10:35:01 +0900