Speed up pg_regress server readiness testing.
authorDaniel Gustafsson <[email protected]>
Tue, 24 Oct 2023 19:37:35 +0000 (21:37 +0200)
committerDaniel Gustafsson <[email protected]>
Tue, 24 Oct 2023 19:37:35 +0000 (21:37 +0200)
commit66d6086cbcbfc8dee789a69bf56d967bf9607902
treed3f0d171d50e605c13a9b12c6f360fb26c2ba349
parent387f9ed0a0832760a709d27abd630002903e3459
Speed up pg_regress server readiness testing.

Instead of connecting to the server with psql to check if it is ready
for running tests, this changes pg_regress to use PQPing which avoids
performing system() calls which are expensive on some platforms, like
Windows. The frequency of tests is also increased in order to connect
to the server faster.

This patch is part of a larger effort to make testing consume fewer
resources in order to be able to fit more tests into the available
CI system constraints.

Reviewed-by: Andres Freund <[email protected]>
Discussion: https://postgr.es/m/20230823192239[email protected]
src/interfaces/ecpg/test/Makefile
src/interfaces/ecpg/test/meson.build
src/test/isolation/Makefile
src/test/isolation/meson.build
src/test/regress/GNUmakefile
src/test/regress/meson.build
src/test/regress/pg_regress.c