This version of hasql-pool is a simplified rewrite that doesn't use the resource-pool package. The major API changes are that idle connections are no longer timed out (and the corresponding setting is gone), and that `release` makes the pool unusable, where it used to remain usable and only flushed idle connections. We depend on a PostgREST fork of 0.7.2 that gives us reliable flushing, compare https://github.com/PostgREST/hasql-pool/pull/1 - hasql-pool 0.7 removes timing out of idle connections, so this change removes the db-pool-timeout option. Given that we were typically running with very high timeout settings, I don't anticipate the lack of timeout to introduce new issues, though we might want to consider introducing some retry-logic down the line when we encounter connection failures. - See https://github.com/PostgREST/postgrest/issues/2422 for a discussion on depending on a forked dependency. Besides adding the dependency to the nix overlay, we're also adding it to stack.yaml and a new cabal.project to allow stack/cabal users to build the project.
30 lines
676 B
Plaintext
30 lines
676 B
Plaintext
db-anon-role = ""
|
|
db-channel = "pgrst"
|
|
db-channel-enabled = true
|
|
db-extra-search-path = "public"
|
|
db-max-rows = ""
|
|
db-plan-enabled = false
|
|
db-pool = 10
|
|
db-pre-request = ""
|
|
db-prepared-statements = false
|
|
db-root-spec = ""
|
|
db-schemas = "public"
|
|
db-config = true
|
|
db-tx-end = "commit"
|
|
db-uri = "postgresql://"
|
|
db-use-legacy-gucs = true
|
|
jwt-aud = ""
|
|
jwt-role-claim-key = ".\"role\""
|
|
jwt-secret = ""
|
|
jwt-secret-is-base64 = true
|
|
log-level = "error"
|
|
openapi-mode = "follow-privileges"
|
|
openapi-security-active = false
|
|
openapi-server-proxy-uri = ""
|
|
raw-media-types = ""
|
|
server-host = "!4"
|
|
server-port = 3000
|
|
server-unix-socket = ""
|
|
server-unix-socket-mode = "660"
|
|
admin-server-port = ""
|