1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-06 13:46:51 +03:00
Files
postgres/src/test/perl/PostgreSQL/Test/Utils.pm
Noah Misch 20911775de 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
2022-06-25 09:07:44 -07:00

17 lines
347 B
Perl

# Copyright (c) 2022, PostgreSQL Global Development Group
# Allow use of release 15+ Perl package name in older branches, by giving that
# package the same symbol table as the older package.
package PostgreSQL::Test::Utils;
use strict;
use warnings;
use TestLib;
BEGIN { *PostgreSQL::Test::Utils:: = \*TestLib::; }
use Exporter 'import';
1;