pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Tweak regex to avoid a bug in Perl 5.16.3.
Date: Fri, 28 Feb 2025 20:20:44 +0000
Message-ID: <E1to6qi-000BNg-0X@gemulon.postgresql.org> (raw)

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@gmail.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(-)



Message-ID: <E1to6qi-000BNg-0X@gemulon.postgresql.org>
Permalink:  ../E1to6qi-000BNg-0X@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1to6qi-000BNg-0X@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Tweak regex to avoid a bug in Perl 5.16.3.
  In-Reply-To: <E1to6qi-000BNg-0X@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