File tree 3 files changed +6
-10
lines changed
files/admin_api_scripts/pg_upgrade_scripts
3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ function cleanup {
22
22
23
23
ship_logs " $LOG_FILE " || true
24
24
25
- # Restore max_slot_wal_keep_size to 4096 after binary upgrade
26
- sed -i ' s/max_slot_wal_keep_size = -1/max_slot_wal_keep_size = 4096/' /etc/postgresql/postgresql.conf
27
-
28
25
# Restart postgres to apply any configuration changes
29
26
if [ -z " $IS_CI " ]; then
30
27
systemctl restart postgresql
Original file line number Diff line number Diff line change @@ -397,9 +397,6 @@ function initiate_upgrade {
397
397
chown -R postgres:postgres " $MOUNT_POINT /"
398
398
rm -rf " ${PGDATANEW:? } /"
399
399
400
- # Change max_slot_wal_keep_size to -1 for binary upgrade
401
- sed -i ' s/max_slot_wal_keep_size = [0-9]*/max_slot_wal_keep_size = -1/' /etc/postgresql/postgresql.conf
402
-
403
400
if [ " $IS_NIX_UPGRADE " = " true" ]; then
404
401
if [[ " $PGVERSION " =~ ^17.* || " $PGVERSION " == " 17-orioledb" ]]; then
405
402
LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LANG=en_US.UTF-8 LOCALE_ARCHIVE=/usr/lib/locale/locale-archive su -c " . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && $PGBINNEW /initdb --encoding=$SERVER_ENCODING --locale-provider=icu --icu-locale=en_US.UTF-8 -L $PGSHARENEW -D $PGDATANEW / --username=supabase_admin" -s " $SHELL " postgres
@@ -430,8 +427,10 @@ $(cat /etc/postgresql/pg_hba.conf)" > /etc/postgresql/pg_hba.conf
430
427
--jobs="${WORKERS} " -r \
431
428
--old-options='-c config_file=${POSTGRES_CONFIG_PATH} ' \
432
429
--old-options="-c shared_preload_libraries='${SHARED_PRELOAD_LIBRARIES} '" \
430
+ --old-options="-c max_slot_wal_keep_size=-1" \
433
431
--new-options="-c data_directory=${PGDATANEW} " \
434
- --new-options="-c shared_preload_libraries='${SHARED_PRELOAD_LIBRARIES} '"
432
+ --new-options="-c shared_preload_libraries='${SHARED_PRELOAD_LIBRARIES} '" \
433
+ --new-options="-c max_slot_wal_keep_size=-1"
435
434
EOF
436
435
)
437
436
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ postgres_major:
9
9
10
10
# Full version strings for each major version
11
11
postgres_release :
12
- postgresorioledb-17 : " 17.0.1.078-orioledb-upgrade-4 "
13
- postgres17 : " 17.4.1.028-upgrade-4 "
14
- postgres15 : " 15.8.1.085-upgrade-4 "
12
+ postgresorioledb-17 : " 17.0.1.078-orioledb-upgrade-5 "
13
+ postgres17 : " 17.4.1.028-upgrade-5 "
14
+ postgres15 : " 15.8.1.085-upgrade-5 "
15
15
16
16
# Non Postgres Extensions
17
17
pgbouncer_release : " 1.19.0"
You can’t perform that action at this time.
0 commit comments