#!/usr/bin/env bash
# Stops the Bousla dev PostgreSQL cluster (port 5433). Does not delete data.
set -euo pipefail
PGBIN="/c/Program Files/PostgreSQL/18/bin"
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
"$PGBIN/pg_ctl.exe" -D "$ROOT/.pgdata" stop -m fast || echo "Server not running."
