pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: For PostgreSQL::Test compatibility, alias entire package symbol
Date: Sat, 25 Jun 2022 16:10:22 +0000
Message-ID: <E1o58MY-001lnM-Ar@gemulon.postgresql.org> (raw)

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(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1o58MY-001lnM-Ar@gemulon.postgresql.org>
Permalink:  ../E1o58MY-001lnM-Ar@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1o58MY-001lnM-Ar@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: For PostgreSQL::Test compatibility, alias entire package symbol
  In-Reply-To: <E1o58MY-001lnM-Ar@gemulon.postgresql.org>
  References: <E1o58MY-001lnM-Ar@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox