Re: pg_dump: sortDumpableObjectsByTypeName() doesn't always do that
Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>, Jacob Champion <pchampion@pivotal.io>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2018-08-06T19:16:56Z
Lists: pgsql-hackers
On 08/06/2018 03:13 PM, Tom Lane wrote: > Jacob Champion <pchampion@pivotal.io> writes: >> We recently ran into an issue in pg_dump that caused the initial >> sort-by-name pass to return incorrect results. It doesn't seem to >> affect overall correctness, since the later toposort pass takes care >> of dependencies, but it does occasionally cause a spurious diff in >> dump output before and after a pg_upgrade run. > Do you mean "incorrect results", or just "unstable results"? > If the former, what's incorrect about it? > > I'd also like to see a test case. We should perhaps have a more representative set of data for the upgrade testing, both same version and cross-version, which judge success by comparing pre and post dumps, but I don't recall ever seeing this. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Ensure pg_dump_sort.c sorts null vs non-null namespace consistently.
- f7364300667b 11.0 landed
- f3f6558b5d76 9.5.15 landed
- dc391dacf170 10.6 landed
- abd04e0dd8a5 9.4.20 landed
- 6b6327d938ed 9.6.11 landed
- 5b5ed4756c9b 12.0 landed
- 5abdb33ad053 9.3.25 landed
-
Last-minute updates for release notes.
- e0ee93053998 12.0 cited