PG18: use data-checksums by default in upgrades (#8230)

Checksums are now on by default in PG18: 04bec894a

Upgrade to PG18 fails with the following error:
`old cluster does not use data checksums but the new one does`

To overcome this error, we add --data-checksums option such that
clusters with PG less than 18 also use data checksums.

Fixes #8229
pull/8224/head
Naisila Puka 2025-10-07 12:17:08 +03:00 committed by GitHub
parent c5dde4b115
commit 2a6414c727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ def initialize_db_for_cluster(pg_path, rel_data_path, settings, node_names):
# --allow-group-access is used to ensure we set permissions on
# private keys correctly
"--allow-group-access",
"--data-checksums",
"--encoding",
"UTF8",
"--locale",