Re: Test to dump and restore objects left behind by regression
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>,
Michael Paquier <michael@paquier.xyz>,
vignesh C <vignesh21@gmail.com>,
Daniel Gustafsson <daniel@yesql.se>,
Peter Eisentraut <peter@eisentraut.org>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-03-28T14:22:08Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> writes: > Hmm, I didn't mean that we'd maintain a separate schedule. I meant that > we'd take the existing schedule, then apply some Perl magic to it that > grep-outs the tests that we know to contribute nothing, and generate a > new schedule file dynamically. We don't need to maintain a separate > schedule file. This seems like a fundamentally broken approach to me. The entire argument for using the core regression tests as a source of data to test dump/restore is that, more or less "for free", we can expect to get coverage when new SQL language features are added. That's always been a little bit questionable --- there's a temptation to drop objects again at the end of a test script. But with this, it becomes a complete crapshoot whether the objects you need will be included in the dump. I think instead of going this direction, we really need to create a separately-purposed script that simply creates "one of everything" without doing anything else (except maybe loading a little data). I believe it'd be a lot easier to remember to add to that when inventing new SQL than to remember to leave something behind from the core regression tests. This would also be far faster to run than any approach that involves picking a random subset of the core test scripts. regards, tom lane
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