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

Andrew Dunstan <andrew@dunslane.net>

Commit: 0c92ed165ec13672d615d81a5c5fb76580f92f13
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2021-06-03T21:29:43Z
Releases: 12.8
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.

Files

PathChange+/−
src/test/perl/PostgresNode.pm modified +3 −2