Skip to content

Commit

Permalink
fix: exclude timescaledb for PG17+ upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnc authored and samrose committed Feb 18, 2025
1 parent 3c983d1 commit ec84517
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ function initiate_upgrade {
if [[ "$OLD_PGVERSION" =~ 14* ]]; then
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/wrappers//" | xargs)
fi

# Timescale is no longer supported for PG17+ upgrades
if [[ "$PGVERSION" != "15" ]]; then
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/timescaledb//" | xargs)
fi

SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/pg_cron//" | xargs)
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/pg_net//" | xargs)
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES" | sed "s/check_role_membership//" | xargs)
Expand Down

0 comments on commit ec84517

Please sign in to comment.