pgsql: Sort DO_DEFAULT_ACL dump objects independent of OIDs.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Sort DO_DEFAULT_ACL dump objects independent of OIDs.
Date: 2025-08-23 03:53:46
Message-ID: E1upfK6-001EXE-0L@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Sort DO_DEFAULT_ACL dump objects independent of OIDs.

Commit 0decd5e89db9f5edb9b27351082f0d74aae7a9b6 missed DO_DEFAULT_ACL,
leading to assertion failures, potential dump order instability, and
spurious schema diffs. Back-patch to v13, like that commit.

Reported-by: Alexander Lakhin <exclusion(at)gmail(dot)com>
Author: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Discussion: https://postgr.es/m/d32aaa8d-df7c-4f94-bcb3-4c85f02bea21@gmail.com
Backpatch-through: 13

Branch
------
REL_15_STABLE

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

Modified Files
--------------
src/bin/pg_dump/pg_dump_sort.c | 13 +++++++++++++
src/test/regress/expected/privileges.out | 5 +++++
src/test/regress/sql/privileges.sql | 7 +++++++
3 files changed, 25 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2025-08-23 23:47:48 pgsql: Rewrite previous commit's test for TestUpgradeXversion compatibi
Previous Message Alexander Korotkov 2025-08-22 16:32:20 pgsql: Revert "Get rid of WALBufMappingLock"