pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Do not dump identity sequences with excluded parent table 3+ messages / 1 participants [nested] [flat]
* pgsql: Do not dump identity sequences with excluded parent table @ 2018-08-22 05:24 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2018-08-22 05:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4ed59e02f5aa97618bb33355dc3accbcc2d5ace1 Modified Files -------------- src/bin/pg_dump/pg_dump.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Do not dump identity sequences with excluded parent table @ 2018-08-22 05:24 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2018-08-22 05:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Do not dump identity sequences with excluded parent table @ 2018-08-22 05:24 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2018-08-22 05:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cb282eab1a684bb409dcb6cadbf7dd868227713d Modified Files -------------- src/bin/pg_dump/pg_dump.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-08-22 05:24 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-08-22 05:24 pgsql: Do not dump identity sequences with excluded parent table Michael Paquier <michael@paquier.xyz> 2018-08-22 05:24 pgsql: Do not dump identity sequences with excluded parent table Michael Paquier <michael@paquier.xyz> 2018-08-22 05:24 pgsql: Do not dump identity sequences with excluded parent table Michael Paquier <michael@paquier.xyz>
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