Re: Test to dump and restore objects left behind by regression
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Cc: Daniel Gustafsson <daniel@yesql.se>, Tom Lane <tgl@sss.pgh.pa.us>, Peter Eisentraut <peter@eisentraut.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2025-02-11T23:55:14Z
Lists: pgsql-hackers
On Tue, Feb 11, 2025 at 12:19:33PM +0530, Ashutosh Bapat wrote: > Sorry for replying late here. The refactored code in > 002_compare_backups.pl has a potential to cause confusion even without > this refactoring. The differences in tablespace paths are adjusted in > compare_files() and not in the actual dump outputs. In case there's a > difference other than paths, diff between the dump outputs is reported > which will also show the differences in paths. That might mislead > developers in thinking that the differences in paths are also not > expected. Am I right? Logically, 002_compare_backups.pl is still the same, isn't it? We're still passing the file paths to compare_text(), except that the comparison routine is given as an argument one level higher. You are right that there could be an argument for changing the files are they are on-disk, and do a diff based on what's on disk after what has changed so as the filtered parts are out of the report. However, there is also an argument for not changing them as that's more useful to know the original state of the dump for debugging. This one involves only a small change, which is OK as-is, IMHO. -- Michael
Commits
-
Hide expensive pg_upgrade test behind PG_TEST_EXTRA
- d185161e4739 18.0 landed
- 37fc1803cc12 19 (unreleased) landed
-
Set log_statement=none in t/002_pg_upgrade.pl
- 64fba9c61787 18.0 landed
-
002_pg_upgrade.pl: Move pg_dump test code for better stability
- 8806e4e8deb1 18.0 landed
-
002_pg_upgrade.pl: rename some variables for clarity
- abe56227b2e2 18.0 landed
-
Verify roundtrip dump/restore of regression database
- 172259afb563 18.0 landed
-
Refactor TAP test code for file comparisons into new routine in Utils.pm
- 169208092f5c 18.0 landed
-
Virtual generated columns
- 83ea6c54025b 18.0 cited
-
Put generated_stored test objects in a schema
- 894be11adfa6 18.0 cited
-
Introduce "builtin" collation provider.
- 2d819a08a1cb 17.0 cited
-
Revert "Improve compression and storage support with inheritance"
- 74563f6b9021 17.0 cited