Re: Backporting BackgroundPsql
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Daniel Gustafsson <daniel@yesql.se>, Andres Freund <andres@anarazel.de>, Heikki Linnakangas <hlinnaka@iki.fi>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Andrew Dunstan <andrew@dunslane.net>, Melanie Plageman <melanieplageman@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>, Mikael Kjellström <mikael.kjellstrom@gmail.com>
Date: 2024-06-26T00:12:42Z
Lists: pgsql-hackers
On 2024-Jun-25, Tom Lane wrote: > Daniel Gustafsson <daniel@yesql.se> writes: > > However, since Andrew is actively aiming to replace all of this shortly, should > > we wait a see where that lands to avoid having to backport another library > > change? > > I would like to see what he comes up with ... but is it likely to > be something we'd risk back-patching? FWIW I successfully used the preliminary PqFFI stuff Andrew posted to write a test program for bug #18377, which I think ended up being better than with BackgroundPsql, so I think it's a good way forward. As for back-patching it, I suspect we're going to end up backpatching the framework anyway just because we'll want to have it available for backpatching future tests, even if we keep a backpatch minimal by doing only the framework and not existing tests. I also backpatched the PqFFI and PostgreSQL::Session modules to older PG branches, to run my test program there. This required only removing some lines from PqFFI.pm that were about importing libpq functions that older libpq didn't have. Of course, the PostgreSQL::Session stuff is not ready yet, so if we want this test in the tree soon, I don't think we should wait. I'll note, though, that Test::More doesn't work terribly nicely with perl threads, but that only relates to my test program and not to PqFFI. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "La gente vulgar sólo piensa en pasar el tiempo; el que tiene talento, en aprovecharlo"
Commits
-
Fix missing installation/uninstallation rules for BackgroundPsql.pm
- 241ef53b6a95 12.20 landed
- 0d80e59a1b2c 13.16 landed
- 1185be355462 14.13 landed
- 9d7506a2f7cb 15.8 landed
-
Backport BackgroundPsql perl test module
- 4b467a6581af 12.20 landed
- 12f327b210b3 13.16 landed
- 31877cd8ec8c 14.13 landed
- d5fd7865f068 15.8 landed
- 187b8991f70f 16.4 landed
-
Add missing uninstallation rule for BackgroundPsql.pm
- 7039c7cff673 16.0 cited
-
Fix missing installation rules for BackgroundPsql.pm
- a4c17c86176c 16.0 cited
-
Skip \password TAP test on old IPC::Run versions
- 2e57ffe12f6b 16.0 landed
-
Test SCRAM iteration changes with psql \password
- bf5a894c5571 16.0 landed
-
Refactor background psql TAP functions
- 664d757531e1 16.0 landed