pgsql: Allow passing extra options to initdb for tests

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow passing extra options to initdb for tests
Date: 2024-02-15 09:38:40
Message-ID: E1raYCW-006LM3-2l@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Allow passing extra options to initdb for tests

Setting the environment variable PG_TEST_INITDB_EXTRA_OPTS passes
extra options to initdb run by pg_regress or
PostgreSQL::Test::Cluster's init.

This can be useful for a wide variety of uses, like running all tests
with checksums enabled, or with JIT enabled, or with different GUC
settings, or with different locale settings. (Not all tests are going
to pass with arbitrary options, but it is useful to run this against
specific test suites.)

Reviewed-by: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/d4d2ad9f-1c1d-47a1-bb4d-c10a747d4f15%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/995d400ceca3e552f84fe19f150fb03327bdc0c2

Modified Files
--------------
doc/src/sgml/regress.sgml | 34 +++++++++++++++++++++++++-------
src/test/perl/PostgreSQL/Test/Cluster.pm | 7 +++++++
src/test/regress/pg_regress.c | 7 ++++++-
3 files changed, 40 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2024-02-15 10:06:30 pgsql: Pull up ANY-SUBLINK with the necessary lateral support.
Previous Message Amit Kapila 2024-02-15 05:22:24 pgsql: Another try to fix BF failure introduced in commit ddd5f4f54a.