Closed fiadliel closed 3 weeks ago
Hello @fiadliel, thank you for reporting this issue. While PostgreSQL is running in another process, the aim of this project is to try to provide an "embedded-like" experience for users. I made some changes in #76 that should address this problem and added a regression test to try to reproduce/verify the fix.
The changes for #76 have been released in 0.10.2
Fixed in my test! (the scenario was that PGDATABASE
was used when running programs interactively, but I was investigating using this library to set up some integration tests). Very quick fix, thanks a lot :)
I'm not sure if you want to ascribe this as "fix your environment", but if
PGDATABASE
is set in the environment (to anything other thanpostgres
), the database creation commands fail, as psql connects to a database that doesn't exist.One option might be to explicitly set the database to
postgres
when running database management commands.