In PostgresNode.pm, don't pass SQL to psql on the command line
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 3 Jun 2021 20:08:33 +0000 (16:08 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 3 Jun 2021 20:14:06 +0000 (16:14 -0400)
commit11e9caff82bc7326e2bc9782937cb03875050cc4
treef694cb559fd96b7575c8900be9547784db88b64c
parent3590680b85a8e51ef8df550e5a10dedd0d2dfd88
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.
src/test/perl/PostgresNode.pm