Skip to content

Commit

Permalink
drop lc_collate check and timescale db when upgrade 16 to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovinda committed Sep 17, 2024
1 parent 24bf242 commit a26e878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions postgres-appliance/major_upgrade/pg_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,8 @@ def pg_upgrade(self, check=False):
def prepare_new_pgdata(self, version):
from spilo_commons import append_extensions

locale = self.query('SHOW lc_collate')[0][0]
encoding = self.query('SHOW server_encoding')[0][0]
initdb_config = [{'locale': locale}, {'encoding': encoding}]
initdb_config = [{'encoding': encoding}]
if self.query("SELECT current_setting('data_checksums')::bool")[0][0]:
initdb_config.append('data-checksums')

Expand Down
1 change: 1 addition & 0 deletions postgres-appliance/tests/test_spilo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ function test_spilo() {

# drop_timescaledb "$container"
log_info "[TS1] Testing in-place major upgrade 16->17"
drop_timescaledb "$container" # drop timescaledb as it is not yet supported in 17
run_test test_successful_inplace_upgrade_to_17 "$container"
wait_all_streaming "$container"
run_test test_envdir_updated_to_x 17
Expand Down

0 comments on commit a26e878

Please sign in to comment.