Skip to content

Commit 545d8ba

Browse files
committed
fix: jit on/off handling to match our upgrade scripts
1 parent dee6c48 commit 545d8ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nix/tools/migrate-tool.sh.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ if [ "$UPGRADE_METHOD" == "pg_upgrade" ]; then
140140
rm -f delete_old_cluster.sh # we don't need this
141141
echo "Migration complete, running post-migration checks"
142142
$NEWVER/bin/pg_ctl start -D "$NEWDAT"
143+
echo "TURN off jit"
144+
POST_UPGRADE_EXTENSION_SCRIPT=$(mktemp)
145+
cat << EOF >> "$POST_UPGRADE_EXTENSION_SCRIPT"
146+
ALTER SYSTEM SET jit = off;
147+
SELECT pg_reload_conf();
148+
EOF
149+
"$NEWVER"/bin/psql -h localhost -U supabase_admin -p 5432 -d postgres -f "$POST_UPGRADE_EXTENSION_SCRIPT"
150+
143151
"$PG_PROVE"/bin/pg_prove --psql="$NEWVER"/bin/psql -h localhost -U supabase_admin -d postgres -p 5432 \
144152
"$PGUPGRADE_TESTS/pg_upgrade/tests/01-schema.sql"
145153
"$PG_PROVE"/bin/pg_prove --psql="$NEWVER"/bin/psql -h localhost -U supabase_admin -d postgres -p 5432 \

0 commit comments

Comments
 (0)