]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Sort DO_DEFAULT_ACL dump objects independent of OIDs. master github/master
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:28 +0000 (20:50 -0700)
commitb61a5c4bed7df87120df587731840e51ea7c7525
treed502056bff90296359021ea0cd9ae595516788a6
parentc13070a27b63d9ce4850d88a63bf889a6fde26f0
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