]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Sort DO_DEFAULT_ACL dump objects independent of OIDs.
authorNoah Misch <noah@leadboat.com>
Sat, 23 Aug 2025 03:50:28 +0000 (20:50 -0700)
committerNoah Misch <noah@leadboat.com>
Sat, 23 Aug 2025 03:50:32 +0000 (20:50 -0700)
commitfbf967e996ddb6ce32983479236339ac3c7e1ce6
tree86d92eec9be2386c115aa46493917823bca69783
parentec471008c8fc224554d84be0f0b44d4b65efa0b1
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@gmail.com>
Author: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/d32aaa8d-df7c-4f94-bcb3-4c85f02bea21@gmail.com
Backpatch-through: 13
src/bin/pg_dump/pg_dump_sort.c
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql