Skip to content

Conversation

moriyoshi
Copy link

This patch enables configuration of the following boot-time parameters through the environment variables:

  • max_connections (POSTGRES_MAX_CONNECTIONS)
  • max_prepared_transactions (POSTGRES_MAX_PREPARED_TRANSACTIONS)
@tianon
Copy link
Member

tianon commented Apr 5, 2017

Sorry for the long review delay 😞

This can already be accomplished pretty easily without modifying the image, via -c:

$ docker run -dit --name test postgres -c max_connections=200 -c max_prepared_transactions=400 722a07c55a76ec6175cea4d9908e14624f22eef8ee5fdc6bb63a4f5591972f36 $ docker exec -it test psql -U postgres psql (9.6.2) Type "help" for help. postgres=# SHOW max_connections; SHOW max_prepared_transactions;  max_connections  -----------------  200 (1 row)  max_prepared_transactions  ---------------------------  400 (1 row) postgres=# 

Thanks! ❤️

@tianon tianon closed this Apr 5, 2017
@moriyoshi moriyoshi deleted the configure-boottime-params-by-envs branch July 28, 2017 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants