postgresql/src/bin/pg_dump
Noah Misch 1cdc07ad5a Sort DO_SUBSCRIPTION_REL dump objects independent of OIDs.
Commit 0decd5e89d missed
DO_SUBSCRIPTION_REL, leading to assertion failures.  In the unlikely use
case of diffing "pg_dump --binary-upgrade" output, spurious diffs were
possible.  As part of fixing that, align the DumpableObject naming and
sort order with DO_PUBLICATION_REL.  The overall effect of this commit
is to change sort order from (subname, srsubid) to (rel, subname).
Since DO_SUBSCRIPTION_REL is only for --binary-upgrade, accept that
larger-than-usual dump order change.  Back-patch to v17, where commit
9a17be1e24 introduced DO_SUBSCRIPTION_REL.

Reported-by: vignesh C <vignesh21@gmail.com>
Author: vignesh C <vignesh21@gmail.com>
Discussion: https://postgr.es/m/CALDaNm2x3rd7C0_HjUpJFbxpAqXgm=QtoKfkEWDVA8h+JFpa_w@mail.gmail.com
Backpatch-through: 17
2025-12-18 10:23:51 -08:00
..
po Translation updates 2025-11-10 13:02:28 +01:00
t Restore test coverage of LZ4Stream_gets(). 2025-10-11 16:33:55 -04:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c Sort dump objects independent of OIDs, for the 7 holdout object types. 2025-07-31 06:38:00 -07:00
compress_gzip.c Don't rely on zlib's gzgetc() macro. 2025-10-19 14:36:58 -04:00
compress_gzip.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_io.c pg_dump: Fix compression API errorhandling 2025-08-29 19:28:46 +02:00
compress_io.h pg_dump: Fix compression API errorhandling 2025-08-29 19:28:46 +02:00
compress_lz4.c pg_dump: Fix compression API errorhandling 2025-08-29 19:28:46 +02:00
compress_lz4.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_none.c pg_dump: Fix compression API errorhandling 2025-08-29 19:28:46 +02:00
compress_none.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_zstd.c pg_dump: Fix compression API errorhandling 2025-08-29 19:28:46 +02:00
compress_zstd.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
dumputils.c Restrict psql meta-commands in plain-text dumps. 2025-08-11 09:00:00 -05:00
dumputils.h Restrict psql meta-commands in plain-text dumps. 2025-08-11 09:00:00 -05:00
filter.c pg_dump: Fix incorrect parsing of object types in pg_dump --filter. 2025-08-08 14:37:41 +09:00
filter.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls.mk Add missing source files to nls.mk 2024-06-13 10:17:36 +02:00
parallel.c Rename static function to avoid conflicting names 2024-02-07 22:16:21 +01:00
parallel.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_backup.h Restrict psql meta-commands in plain-text dumps. 2025-08-11 09:00:00 -05:00
pg_backup_archiver.c pg_restore: Fix security label handling with --no-publications/subscriptions. 2025-09-18 11:10:18 +09:00
pg_backup_archiver.h Fix dumps of partitioned tables with table AMs 2024-04-22 15:15:36 +09:00
pg_backup_custom.c Rearrange pg_dump's handling of large objects for better efficiency. 2024-04-01 16:25:56 -04:00
pg_backup_db.c Invent --transaction-size option for pg_restore. 2024-04-01 16:46:24 -04:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:04 -05:00
pg_backup_directory.c pg_dump: Fix compression API errorhandling 2025-08-29 19:28:46 +02:00
pg_backup_null.c Rearrange pg_dump's handling of large objects for better efficiency. 2024-04-01 16:25:56 -04:00
pg_backup_tar.c Rearrange pg_dump's handling of large objects for better efficiency. 2024-04-01 16:25:56 -04:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_backup_utils.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_dump.c Sort DO_SUBSCRIPTION_REL dump objects independent of OIDs. 2025-12-18 10:23:51 -08:00
pg_dump.h Sort dump objects independent of OIDs, for the 7 holdout object types. 2025-07-31 06:38:00 -07:00
pg_dump_sort.c Sort DO_SUBSCRIPTION_REL dump objects independent of OIDs. 2025-12-18 10:23:51 -08:00
pg_dumpall.c Restrict psql meta-commands in plain-text dumps. 2025-08-11 09:00:00 -05:00
pg_restore.c Restrict psql meta-commands in plain-text dumps. 2025-08-11 09:00:00 -05:00