Re: Postgres perl module namespace
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Noah Misch <noah@leadboat.com>, Andres Freund <andres@anarazel.de>,
Michael Paquier <michael@paquier.xyz>, Erik Rijkers <er@xs4all.nl>,
Robert Haas <robertmhaas@gmail.com>,
Alvaro Herrera <alvherre@alvh.no-ip.org>,
Mark Dilger <mark.dilger@enterprisedb.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-04-18T17:43:52Z
Lists: pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes: > On 2022-04-18 Mo 11:52, Noah Misch wrote: >> On Mon, Apr 18, 2022 at 07:15:30AM -0700, Andres Freund wrote: >>> I just, again, tried to backport a test as part of a bugfix. The >>> renaming between 14 and 15 makes that task almost comically harder. The >>> only way I see of dealing with that for the next 5 years is to just >>> never backpatch tests to < 15. Which seems like a bad outcome. > I'm not sure how often we do things like that. But I don't agree it's > impossibly hard, although I can see it might be a bit annoying. I think we back-patch test cases *all the time*. So I think Andres is quite right to be concerned about making that harder, although I'm not sure that his estimate of the conversion difficulty is accurate. I plan to keep a copy of Noah's script and see if applying that to the patch files alleviates the pain. In a few months we should have a better idea of whether that's sufficient, or we want to go to the work of back-patching the renaming. I doubt that just plopping the new Cluster.pm in alongside the old file could work --- wouldn't the two modules need to share state somehow? Another thing that ought to be on the table is back-patching 549ec201d (Replace Test::More plans with done_testing). Those test counts are an even huger pain for back-patching than the renaming, because the count is often different in each branch. regards, tom lane
Commits
-
Fix PostgreSQL::Test aliasing for Perl v5.10.1.
- fe25c8533c17 12.12 landed
- ca590a4e958f 10.22 landed
- bf92b73beb50 11.17 landed
- aa1845cdd697 13.8 landed
- 4b0d21b06c6b 14.5 landed
-
For PostgreSQL::Test compatibility, alias entire package symbol tables.
- 38790408b020 10.22 landed
- ec26f44d539a 12.12 landed
- e8f037a2df9b 13.8 landed
- c41edb324294 11.17 landed
- 20911775de4a 14.5 landed
-
Make PostgresNode easily subclassable
- 54dacc746628 10.0 cited