The maintained version of these files lives in the self-hosted-supabase handbook. This gist is a snapshot of 2026-10-20; check the repo for fixes.
Both files only read catalogs. They print names, counts, owners, sizes and hashes, never secret values.
docker cp . supabase-db-<service-uuid>:/tmp/checks/
docker exec supabase-db-<service-uuid> psql -U supabase_admin -d postgres -X -f /tmp/checks/preflight.sql > preflight.out
# ... upgrade ...