mirror of
https://github.com/postgres/postgres.git
synced 2025-09-06 13:46:51 +03:00
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
17 lines
347 B
Perl
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;
|