On Sun, Nov 28, 2021 at 01:15:36PM +0900, Michael Paquier wrote:
> Using directly psql commands in the tests is not a good idea as it
> makes the client-side execution more sensitive to the environment.
> src/test/perl/PostgreSQL/Test/Cluster.pm does the same work, in the
> wanted way, so it would be better to rely on it (see 384f1ab for one
> recent issue). A test with a minimal timeout also takes time, making
> for slower tests on faster machines.
Or, rather than relying on a small timeout, could we just send some
data to stdin and check the table's contents in return? That would
make the test faster, while not penalizing the coverage.
--
Michael