diff --git a/scripts/setup/upgrade-postgresql b/scripts/setup/upgrade-postgresql index 61a0f1ae8b..9e66bf018f 100755 --- a/scripts/setup/upgrade-postgresql +++ b/scripts/setup/upgrade-postgresql @@ -48,7 +48,7 @@ SCRIPTS_PATH=$(grep -o "/var/log/postgresql/pg_upgradecluster-$UPGRADE_FROM-$UPG crudini --set /etc/zulip/zulip.conf postgresql version "$UPGRADE_TO" # Update the statistics -[ -n "$SCRIPTS_PATH" ] && su postgres -c "$SCRIPTS_PATH/analyze_new_cluster.sh" +su postgres -c "/usr/lib/postgresql/$UPGRADE_TO/bin/vacuumdb --all --analyze-only --jobs 10" # Start the database up cleanly "$ZULIP_PATH"/scripts/zulip-puppet-apply -f