diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-02-21 13:28:51 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-02-21 13:28:51 +0900 |
commit | ff9e1e764fcce9a34467d614611a34d4d2a91b50 (patch) | |
tree | 03082e29c8e4b236e135fca88f675e7a1bc31a2e /src/backend/parser/parse_merge.c | |
parent | 75bcba6cbd2a6f62752d7917d9a3c0a52f8605c9 (diff) | |
download | postgresql-ff9e1e764fcce9a34467d614611a34d4d2a91b50.tar.gz postgresql-ff9e1e764fcce9a34467d614611a34d4d2a91b50.zip |
Add option force_initdb to PostgreSQL::Test::Cluster:init()
This option is useful to bypass the default behavior of init() which
would create the data folder of a new cluster by copying it from a
template previously initdb'd, if any. Copying the data folder is much
cheaper than running initdb, but some tests may want to force that. For
example, one scenario of pg_combinebackup updated in this commit needs a
different system ID for two nodes.
Previously, this could only be achieved by unsetting
$ENV{'INITDB_TEMPLATE'}, which could become a problem in complex node
setups by making tests less efficient.
Author: Amul Sul
Reviewed-by: Robert Haas, Michael Paquier
Discussion: https://postgr.es/m/Zc1tX9lLonLGu6oH@paquier.xyz
Diffstat (limited to 'src/backend/parser/parse_merge.c')
0 files changed, 0 insertions, 0 deletions