pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: (Blind) fix Perl splitting of strings at newlines
Date: Tue, 16 Mar 2021 14:32:42 +0000
Message-ID: <E1lMAkU-0004za-MG@gemulon.postgresql.org> (raw)

(Blind) fix Perl splitting of strings at newlines

I forgot that Windows represents newlines as \r\n, so splitting a string
at /\s/ creates additional empty strings.  Let's rewrite that as /\s+/
to see if that avoids those.  (There's precedent for using that pattern
on Windows in other scripts.)

Previously: 91bdf499b37b, 8ed428dc977f, 650b96707672.

Per buildfarm, via Tom Lane.
Discussion: https://postgr.es/m/3144460.1615860259@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/015061690c6526ff9f9f7af2940e1c1541654b68

Modified Files
--------------
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1lMAkU-0004za-MG@gemulon.postgresql.org>
Permalink:  ../E1lMAkU-0004za-MG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lMAkU-0004za-MG@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: (Blind) fix Perl splitting of strings at newlines
  In-Reply-To: <E1lMAkU-0004za-MG@gemulon.postgresql.org>
  References: <E1lMAkU-0004za-MG@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