pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Do not dump identity sequences with excluded parent table
Date: Wed, 22 Aug 2018 05:24:17 +0000
Message-ID: <E1fsLcv-0004cq-H2@gemulon.postgresql.org> (raw)

Do not dump identity sequences with excluded parent table

This commit prevents a crash of pg_dump caused by the exclusion of a
table which has identity columns, as the table would be correctly
excluded but not its identity sequence.  In order to fix that, identity
sequences are excluded if the parent table is defined as such.  Knowing
about such sequences has no meaning without their parent table anyway.

Reported-by: Andy Abelisto
Author: David Rowley
Reviewed-by: Peter Eisentraut, Michael Paquier
Discussion: https://postgr.es/m/153479393218.1316.8472285660264976457@wrigleys.postgresql.org
Backpatch-through: 10

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b965f2617184032687037547204e1db1c1e1a56c

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1fsLcv-0004cq-H2@gemulon.postgresql.org>
Permalink:  ../E1fsLcv-0004cq-H2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fsLcv-0004cq-H2@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: michael@paquier.xyz
  Subject: Re: pgsql: Do not dump identity sequences with excluded parent table
  In-Reply-To: <E1fsLcv-0004cq-H2@gemulon.postgresql.org>
  References: <E1fsLcv-0004cq-H2@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