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

Started by Andres Freund23 days ago2 messageshackers
Jump to latest
#1Andres Freund
andres@anarazel.de

Hi,

The attached patch fixes the issue that the initdb template mechanism is used
during ->init(), even install_path => ... was passed to Cluster->new().

Obviously using the template, created for the "current" tree, for an older
install won't normally work.

The only reason this hasn't caused breakage so far is that all the existing
tests that use an older node can't use the template for other reasons (because
they pass arguments to ->init()).

I nonticed this when writing a test that didn't pass anything to ->init()...

Planning to push this soon, don't think there's a reason to hold off.

Greetings,

Andres Freund

Attachments:

t254483_1
v1-0001-tests-Don-t-use-the-initdb-template-for-older-ins.patchtext/x-diff; charset=us-asciiDownload+4-2
#2Nathan Bossart
nathandbossart@gmail.com
In reply to: Andres Freund (#1)
Re: tests: Don't use the initdb template for older installations

On Fri, Oct 30, 2026 at 03:18:29PM -0400, Andres Freund wrote:

Planning to push this soon, don't think there's a reason to hold off.

+1

--
nathan