Skip to content

Commit 71e188b

Browse files
pcncsamrose
authored andcommitted
fix: exclude timescaledb for PG17+ upgrades
1 parent 3e94626 commit 71e188b

File tree

1 file changed

+6
-0
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+6
-0
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ function initiate_upgrade {
214214
if [[ "$OLD_PGVERSION" =~ 14* ]]; then
215215
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/wrappers//" | xargs)
216216
fi
217+
218+
# Timescale is no longer supported for PG17+ upgrades
219+
if [[ "$PGVERSION" != "15" ]]; then
220+
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/timescaledb//" | xargs)
221+
fi
222+
217223
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/pg_cron//" | xargs)
218224
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/pg_net//" | xargs)
219225
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/check_role_membership//" | xargs)

0 commit comments

Comments
 (0)