You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: handle localized duplicate-database errors on restart (#13) (#15)
`pg0 start` failed to restart an existing instance when PostgreSQL
returned a localized duplicate-database error (e.g. on Windows with a
Chinese locale: `数据库 "x" 已经存在`). The previous logic relied on the
English substring `already exists` to swallow the error, which never
matched on non-English builds.
Replaced the post-hoc string match with a `database_exists()` pre-check
so the create path is locale-independent, and added a Python regression
test that starts → stops → restarts an instance with a custom database.
0 commit comments