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

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

From
Andrew Dunstan
Date:
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_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a17ac975e28e2a83caceb8afddc45cae67d724eb

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