hapostgres / pg_auto_failover

Postgres extension and service for automated failover and high-availability
Other
1.07k stars 112 forks source link

Use environment PGDATABASE as the default create node --dbname. #956

Closed DimCitus closed 1 year ago

DimCitus commented 1 year ago

When creating a node the option --dbname can be used to create a database for the application. When using Citus, that database is where pg_autoctl installs the Citus extensions, which is recommanded to be installed in a single database in your Postgres cluster.

To ease using pg_autoctl docker-compose and kubernetes, use PGDATABASE as the default value for the --dbname option, when set in the environment.

Fixes #953