pgsql: tests: Don't use the initdb template for older installations

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: tests: Don't use the initdb template for older installations
Date: 2026-10-30 20:33:59
Message-ID: E1xMtIV-00000001S2x-39AT@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

tests: Don't use the initdb template for older installations

Previously the initdb template was used even when creating a Cluster.pm
instance for an old install. Obviously the current template is not right for
that case. The only reason we didn't notice before is because the existing
cross-version tests, e.g. 002_pg_upgrade.pl, always pass initdb options for
the old node.

Oversight in 252dcb32397.

Discussion: https://postgr.es/m/xhzif5hemvslxymzhk3ykdypwqvjm7pz5dm7taizgxgfjw6fwa@6gygmz5bdnc3
Backpatch-through: 17

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9c44922d125cc369c0356187244f6b80a801ea8e

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-10-31 00:34:27 Re: pgsql: Set HEAP_XMAX_INVALID for tuples updated by aborted subtransacti
Previous Message Nathan Bossart 2026-10-30 19:19:54 pgsql: Remove unused parameter from pgstat_execute_transactional_drops(