pgsql: Support new perl module namespace in stable branches

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Support new perl module namespace in stable branches
Date: 2022-04-21 13:41:50
Message-ID: E1nhX4A-000R28-2f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Support new perl module namespace in stable branches

Commit b3b4d8e68a moved our perl test modules to a better namespace
structure, but this has made life hard for people wishing to backpatch
improvements in the TAP tests. Here we alleviate much of that difficulty
by implementing the new module names on top of the old modules, mostly
by using a little perl typeglob aliasing magic, so that we don't have a
dual maintenance burden. This should work both for the case where a new
test is backpatched and the case where a fix to an existing test that
uses the new namespace is backpatched.

Reviewed by Michael Paquier

Per complaint from Andres Freund

Discussion: https://postgr.es/m/20220418141530.nfxtkohefvwnzncl@alap3.anarazel.de

Applied to branches 10 through 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b235d41d9646c531864ecc680fd9ec5da9217051

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm | 16 +++++++++++
src/test/perl/PostgreSQL/Test/Utils.pm | 47 ++++++++++++++++++++++++++++++++
src/test/perl/PostgresNode.pm | 14 ++++++++++
src/test/perl/TestLib.pm | 42 ++++++++++++++++++++++++++++
4 files changed, 119 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-04-21 16:02:31 pgsql: Use DECLARE_TOAST_WITH_MACRO() to simplify toast-table declarati
Previous Message Etsuro Fujita 2022-04-21 06:39:51 pgsql: postgres_fdw: Disable batch insert when BEFORE ROW INSERT trigge