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-001lnM-Ar@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_12_STABLE

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

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm |  9 +++++---
src/test/perl/PostgreSQL/Test/Utils.pm   | 37 ++++--------------------------
src/test/perl/PostgresNode.pm            | 25 +++++++++-----------
src/test/perl/TestLib.pm                 | 39 --------------------------------
4 files changed, 21 insertions(+), 89 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.