From 9909551f47e86d39e2df1cdeba79774e87744f17 Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Fri, 25 Oct 2024 17:22:35 +0200 Subject: [PATCH] safekeeper: fix version in `TimelinePersistentState::empty()` (#9521) ## Problem The Postgres version in `TimelinePersistentState::empty()` is incorrect: the major version should be multiplied by 10000. ## Summary of changes Multiply the version by 10000. --- safekeeper/src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safekeeper/src/state.rs b/safekeeper/src/state.rs index 8dd873ee77..0826a148ec 100644 --- a/safekeeper/src/state.rs +++ b/safekeeper/src/state.rs @@ -143,8 +143,8 @@ impl TimelinePersistentState { TimelinePersistentState::new( &TenantTimelineId::empty(), ServerInfo { - pg_version: 17, /* Postgres server version */ - system_id: 0, /* Postgres system identifier */ + pg_version: 170000, /* Postgres server version (major * 10000) */ + system_id: 0, /* Postgres system identifier */ wal_seg_size: 16 * 1024 * 1024, }, vec![],