A lightweight health check that prints accepting connections or a failure reason and returns exit code 0 when ready. Useful in scripts and container healthchecks. Related: psql -c 'SELECT 1;' for a full round trip.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.