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

add psql command line tool to binaries

Open pressing-buttons opened this issue 1 year ago • 3 comments

Flyway and Liquibase allow running schema migrations through psql.

If the migrations used to setup the test environment rely on being run with psql using embedded-postgres gets a bit tricky.

To support such environments it would be helpful if the embedded binaries also contained psql.

pressing-buttons avatar Jan 15 '25 21:01 pressing-buttons

Could you please refer me to the official documentation where this feature is described in more detail? I've never heard of such functionality.

tomix26 avatar Jan 18 '25 00:01 tomix26

In Liquibase it's called "native executors":

https://docs.liquibase.com/liquibase-pro/native-executors/home.html

In Flyway it's usable when using the "Script migrations" (which in turn can use psql)

https://documentation.red-gate.com/flyway/flyway-concepts/migrations/script-migrations

pressing-buttons avatar Jan 18 '25 06:01 pressing-buttons

Ok, great, thank you for the info.

tomix26 avatar Jan 19 '25 11:01 tomix26