From 1b3ebb25b84f529d0086875606cd0f7947b57355 Mon Sep 17 00:00:00 2001 From: Brandon Simmons Date: Mon, 29 Jun 2020 22:52:50 -0400 Subject: [PATCH] Shrink libpq buffers to 1MB before returning connection to pool. Closes #5087 See: https://github.com/hasura/pg-client-hs/pull/19 Also related: #3388 #4077 --- CHANGELOG.md | 1 + server/cabal.project | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16e447976d996d..4b7eddf4514285 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -143,6 +143,7 @@ hasura seed apply --file 1234_add_some_seed_data.sql - server: fix mishandling of GeoJSON inputs in subscriptions (fix #3239) - server: fix importing of allow list query from metadata (fix #4687) - server: add new `--conn-lifetime` and `HASURA_GRAPHQL_PG_CONN_LIFETIME` options for expiring connections after some amount of active time (#5087) +- server: shrink libpq connection request/response buffers back to 1MB if they grow beyond 2MB, fixing leak-like behavior on active servers (#5087) - server: flush log buffer during shutdown (#4800) - server: fix edge case with printing logs on startup failure (fix #4772) - console: allow entering big int values in the console (close #3667) (#4775) diff --git a/server/cabal.project b/server/cabal.project index 1f848899238b2b..00ce87ecb9fcd5 100644 --- a/server/cabal.project +++ b/server/cabal.project @@ -36,8 +36,7 @@ package graphql-engine source-repository-package type: git location: https://github.com/hasura/pg-client-hs.git - -- TODO merge https://github.com/hasura/pg-client-hs/pull/16 - tag: b526847a79966f0cd7b6de9365a83b4411ad2002 + tag: 9334ef5a642f0adc93a36416ca883accb61fb67e source-repository-package type: git