postgresql/src/bin
Álvaro Herrera 172259afb5
Verify roundtrip dump/restore of regression database
Add a test to pg_upgrade's test suite that verifies that
dump-restore-dump of regression database produces equivalent output to
dumping it directly.  This was already being tested by running
pg_upgrade itself, but non-binary-upgrade mode was not being covered.

The regression database has accrued, over time, a sufficient collection
of interesting objects to ensure good coverage, but there hasn't been a
concerted effort to be completely exhaustive, so it is likely still
possible to have more.

This'd belong more naturally in the pg_dump test suite, but we chose to
put it in src/bin/pg_upgrade/t/002_pg_upgrade.pl because we need a run
of the regression tests which is already done here, so this has less
total test runtime impact.  Also, experiments have shown that using
parallel dump/restore is slightly faster, so we use --format=directory -j2.

This test has already reported pg_dump bugs, as fixed in fd41ba93e4,
74563f6b90, d611f8b158, 4694aedf63.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://www.postgresql.org/message-id/CAExHW5uF5V=Cjecx3_Z=7xfh4rg2Wf61PT+hfquzjBqouRzQJQ@mail.gmail.com
2025-04-01 18:50:40 +02:00
..
initdb Enable IO concurrency on all systems 2025-03-30 19:16:47 -04:00
pg_amcheck pg_amcheck: Fix inconsistency in memory freeing 2025-02-27 14:05:51 +09:00
pg_archivecleanup Apply more consistent style for command options in TAP tests 2025-03-17 12:42:23 +09:00
pg_basebackup Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
pg_checksums initdb: Add --no-sync-data-files. 2025-03-25 16:02:35 -05:00
pg_combinebackup Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
pg_config Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_controldata Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
pg_ctl Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_dump Add relallfrozen to pg_dump statistics. 2025-03-30 22:14:06 -07:00
pg_resetwal Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
pg_rewind Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
pg_test_fsync Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_test_timing Improve grammar of options for command arrays in TAP tests 2025-01-22 14:47:13 +09:00
pg_upgrade Verify roundtrip dump/restore of regression database 2025-04-01 18:50:40 +02:00
pg_verifybackup Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
pg_waldump Revert workarounds for -Wmissing-braces false positives on old GCC 2025-03-20 11:25:58 +01:00
pg_walsummary Fix some gaps in pg_stat_io with WAL receiver and WAL summarizer 2025-03-05 10:17:39 +09:00
pgbench pgbench: Make set_random_seed() 64-bit everywhere. 2025-03-29 15:24:42 +01:00
pgevent Update copyright for 2025 2025-01-01 11:21:55 -05:00
psql psql: Fix incorrect equality comparison 2025-03-27 14:09:25 +01:00
scripts vacuumdb: Add option for analyzing only relations missing stats. 2025-03-18 16:32:56 -05:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00