Re: pg_dump: sortDumpableObjectsByTypeName() doesn't always do that
Jacob Champion <pchampion@pivotal.io>
From: Jacob Champion <pchampion@pivotal.io>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2018-08-06T19:34:47Z
Lists: pgsql-hackers
On Mon, Aug 6, 2018 at 12:23 PM Jacob Champion <pchampion@pivotal.io> wrote: > since the > root cause is that we're not defining a valid ordering, quicksort may > or may not behave consistently for test purposes. To expand on this, consider three objects, of the same type, compared with the current comparator function: namespace_a.object_3 < namespace_b.object_1 (because a < b) NULL.object_2 < namespace_a.object_3 (because 2 < 3) namespace_b.object_1 < NULL.object_2 (because 1 < 2) This is rock-paper-scissors instead of a partial ordering. --Jacob
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