pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix pg_dump to handle inherited NOT VALID check constraints corr
Date: Thu, 01 Oct 2015 20:20:32 +0000
Message-ID: <E1ZhkLA-0004yh-A5@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Fix pg_dump to handle inherited NOT VALID check constraints correctly.

This case seems to have been overlooked when unvalidated check constraints
were introduced, in 9.2.  The code would attempt to dump such constraints
over again for each child table, even though adding them to the parent
table is sufficient.

In 9.2 and 9.3, also fix contrib/pg_upgrade/Makefile so that the "make
clean" target fully cleans up after a failed test.  This evidently got
dealt with at some point in 9.4, but it wasn't back-patched.  I ran into
it while testing this fix ...

Per bug #13656 from Ingmar Brouns.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/35435af38884df683c6d0d6dcfb20a8c6b65fac1

Modified Files
--------------
src/bin/pg_dump/pg_dump.c                 |    4 ++--
src/test/regress/expected/alter_table.out |   13 +++++++++++++
src/test/regress/sql/alter_table.sql      |    4 ++++
3 files changed, 19 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (5+ messages)

Message-ID: <E1ZhkLA-0004yh-A5@gemulon.postgresql.org>
Permalink:  ../E1ZhkLA-0004yh-A5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZhkLA-0004yh-A5@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix pg_dump to handle inherited NOT VALID check constraints corr
  In-Reply-To: <E1ZhkLA-0004yh-A5@gemulon.postgresql.org>
  References: <E1ZhkLA-0004yh-A5@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox