Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail if local Postgres cluster fails to start
It was a while since the last time I used my linux box to develop EdgeDB. Since then we've upgraded Postgres to 14.2 from 13. My `localdev` directory was created by Postgres 13, so naturally Postgres 14 wouldn't start with it. `edb server`, however, was silently hanging without printing any error messages. Fix this by actively checking if the Postgres process is still alive while trying to establish the first connection to the cluster. Once this was fixed, the following (expected) messages appeared in our stderr: CRITICAL postgres: database files are incompatible with server INFO postgres: The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 14.2.
- Loading branch information