embedded-postgres icon indicating copy to clipboard operation
embedded-postgres copied to clipboard

Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test

Results 13 embedded-postgres issues
Sort by recently updated
recently updated
newest added

By supplying runAsUser it is possible to run initdb as non-root user (which otherwise fails) even if the calling process runs as root. In addition, flush logger on failures to...

This allows a configurable cache path to store postgres archives. Callers can centralize the location of all data stored by this library with this change.

Currently, I get this error, without any useful information: ``` panic: localpg: failed to start PgSQL: unable to init database using: /tmp/go_embedded_pgsql_binaries_3773798719/bin/initdb -A password -U username -D /tmp/go_embedded_pgsql_runtime_2105005878/data --pwfile=/tmp/go_embedded_pgsql_runtime_2105005878/pwfile --locale=en_US.UTF-8...

Is it possible to define the database encoding via arguments in the configuration?

When upgrading the version of PostgreSQL, all data was deleted. This seems like undesired user behavior because there's not a clear warning message that everything will be reset. https://github.com/fergusstrange/embedded-postgres/blob/7bf3aab2dca3964165ded64585e2516791c88876/embedded_postgres.go#L112-L118 I...

Will ensure the process dies. Windows behaviour unchanged since it's more involved.

Hi, First off, thanks for an awesome project! We're using embedded-postgres over at [coder/coder](https://github.com/coder/coder) as a tool to quickly get up-and-running and it's been great. We'd love to be able...

Reasoning: - Last commit in this repo was 7 years ago, project is dead - It's not versioned and doesn't have a go.mod - License can't be detected by pkg.go.dev...

Support for dynamic port allocation resolves #128