Add PG_TEST_SERVER_POSTGRES_OPTS to inject server GUCs in tests

Unlike PG_TEST_INITDB_EXTRA_OPTS, this only appends name=value
settings to postgresql.conf without disabling the initdb template
mechanism.  This speeds up CI, which sets such options in most jobs
and previously paid the full initdb cost per test cluster.

Author: Nazir Bilal Yavuz <[email protected]>
Reviewed-by: Andrey Borodin <[email protected]>
Reviewed-by: Jakub Wartak <[email protected]>
Reviewed-by: Jelte Fennema-Nio <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/CAN55FZ3jqqX9Th23XmDv6U-xwJjzsuc1JffYmswFT=oqy8j...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6b0896f367bb3a3bb49558b530da31780806ea3d

Modified Files
--------------
.github/workflows/pg-ci.yml              | 16 ++++++++--------
doc/src/sgml/regress.sgml                | 10 ++++++++++
src/test/perl/PostgreSQL/Test/Cluster.pm | 18 ++++++++++++++++++
src/test/regress/pg_regress.c            | 24 ++++++++++++++++++++++++
4 files changed, 60 insertions(+), 8 deletions(-)

Reply via email to