pgsql: For PostgreSQL::Test compatibility, alias entire package symbol - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: For PostgreSQL::Test compatibility, alias entire package symbol
Date
Msg-id E1o58MY-001lnR-Bk@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
For PostgreSQL::Test compatibility, alias entire package symbol tables.

Remove the need to edit back-branch-specific code sites when
back-patching the addition of a PostgreSQL::Test::Utils symbol.  Replace
per-symbol, incomplete alias lists.  Give old and new package names the
same EXPORT and EXPORT_OK semantics.  Back-patch to v10 (all supported
versions).

Reviewed by Andrew Dunstan.

Discussion: https://postgr.es/m/20220622072144.GD4167527@rfd.leadboat.com

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm |  9 +++++---
src/test/perl/PostgreSQL/Test/Utils.pm   | 36 ++++--------------------------
src/test/perl/PostgresNode.pm            | 25 +++++++++------------
src/test/perl/TestLib.pm                 | 38 --------------------------------
4 files changed, 21 insertions(+), 87 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove unportable test
Next
From: Noah Misch
Date:
Subject: pgsql: Fix PostgreSQL::Test aliasing for Perl v5.10.1.