Sort DO_DEFAULT_ACL dump objects independent of OIDs.
Noah Misch <noah@leadboat.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/pg_dump_sort.c | modified | +13 −0 |
| src/test/regress/expected/privileges.out | modified | +5 −0 |
| src/test/regress/sql/privileges.sql | modified | +7 −0 |
Discussion
- Test instability when pg_dump orders by OID 25 messages · 2025-07-07 → 2025-08-26