pgsql: Tweak regex to avoid a bug in Perl 5.16.3.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Tweak regex to avoid a bug in Perl 5.16.3.
Date: 2025-02-28 20:20:44
Message-ID: E1to6qi-000BNg-0X@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tweak regex to avoid a bug in Perl 5.16.3.

For some reason, 5.16.3 (and perhaps slightly earlier/later versions)
go into an infinite loop with the version-replacement regex installed
by commit fc0d0ce97. We can work around that by using an explicit
"\n" instead of the line-start metacharacter "^".

Reported-by: Sami Imseih <samimseih(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAA5RZ0u9dV3CdKqkqdusA_RdvBkwWe0c0rxcFWj++VYoutFYSw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8b49392b270b4ac0b9f5c210e2a503546841e832

Modified Files
--------------
src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2025-02-28 20:56:19 Re: pgsql: Refactor COPY FROM to use format callback functions.
Previous Message Tom Lane 2025-02-28 20:14:51 Re: pgsql: Trial fix for old cross-version upgrades.