From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add PG_TEST_SERVER_POSTGRES_OPTS to inject server GUCs in tests
Date: Wed, 18 Nov 2026 14:14:12 +0000
Message-ID: <E1xTgQN-00000000FJR-0Rb9@gemulon.postgresql.org> (raw)
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 <byavuz81@gmail.com>
Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru>
Reviewed-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/CAN55FZ3jqqX9Th23XmDv6U-xwJjzsuc1JffYmswFT=oqy8JfrQ@mail.gmail...
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 instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Add PG_TEST_SERVER_POSTGRES_OPTS to inject server GUCs in tests
In-Reply-To: <E1xTgQN-00000000FJR-0Rb9@gemulon.postgresql.org>
References: <E1xTgQN-00000000FJR-0Rb9@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox