pgsql: In PostgresNode.pm, don't pass SQL to psql on the command line

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: In PostgresNode.pm, don't pass SQL to psql on the command line
Date: 2021-06-03 21:35:40
Message-ID: E1lov08-0002KT-80@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

In PostgresNode.pm, don't pass SQL to psql on the command line

The Msys shell mangles certain patterns in its command line, so avoid
handing arbitrary SQL to psql on the command line and instead use
IPC::Run's redirection facility for stdin. This pattern is already
mostly whats used, but query_poll_until() was not doing the right thing.

Problem discovered on the buildfarm when a new TAP test failed on msys.

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4ed9dacb2ff35e2fa8a0dc9b5706a8c9c5017c2e

Modified Files
--------------
src/test/perl/PostgresNode.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2021-06-04 00:20:15 pgsql: Adjust locations which have an incorrect copyright year
Previous Message Andrew Dunstan 2021-06-03 21:10:25 Re: pgsql: Add regression test for recovery pause.