]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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 21:30:02 +0000 (17:30 -0400)
commita17ac975e28e2a83caceb8afddc45cae67d724eb
tree865c67b4b59a842145ffab72948294f1d28ce9ff
parent20f70f5581726bdb29cf83ce0b5a7e65d257617f
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