Quarkus Embedded Postgresql

An alternative to quarkus-jdbc-postgres that rather than instantiating a pgsql server, uses zonky embedded library, reducing memory footprint.

It is mainly oriented for single pod k8s deployments or integration testing.

Installation

If you want to use this extension, you need to add the io.quarkiverse.embedded.postgresql:quarkus-embedded-postgresql extension to your build file.

For instance, with Maven, add the following dependency to your POM file:

<dependency>
  <groupId>io.quarkiverse.embedded.postgresql</groupId>
  <artifactId>quarkus-embedded-postgresql</artifactId>
</dependency>

Extension Configuration Reference

Configuration property fixed at build time - All other configuration properties are overridable at runtime

Configuration property

Type

Default

Directory where persistence information is hold

Environment variable: QUARKUS_EMBEDDED_POSTGRESQL_DATA_DIR

string

How long PostgreSQL will have to start before it times out. Value is milliseconds.

Environment variable: QUARKUS_EMBEDDED_POSTGRESQL_STARTUP_WAIT

long

Optionally configurable port for the postgresql server. If not set, 62537 is picked.

Environment variable: QUARKUS_EMBEDDED_POSTGRESQL_PORT

int

Set string type

Environment variable: QUARKUS_EMBEDDED_POSTGRESQL_STRING_TYPE

string

unspecified