<div dir="ltr"><div dir="ltr">Following up on this:<div><br></div><div>We have been testing the following patch in our pre-production environment:</div><div><br></div><div><font face="monospace">diff --git a/src/protocol/child.c b/src/protocol/child.c<br>index d334dad3c..77a4337e9 100644<br>--- a/src/protocol/child.c<br>+++ b/src/protocol/child.c<br>@@ -562,7 +562,6 @@ backend_cleanup(POOL_CONNECTION * volatile *frontend, POOL_CONNECTION_POOL * vol<br>  if ((sp &&<br>  (!strcmp(sp->database, "template0") ||<br>   !strcmp(sp->database, "template1") ||<br>-  !strcmp(sp->database, "postgres") ||<br>   !strcmp(sp->database, "regression"))) ||<br>  (*frontend != NULL &&<br>  ((*frontend)->socket_state == POOL_SOCKET_EOF ||</font><br></div><div><br></div><div>The primary effect seems to be a small increase in the average number of open connections to our primary db instance.</div><div><br></div><div>I would like to suggest that the list of databases to exempt from connection caching should be a configurable value; if there is interest I could try to work up a patch/PR.  Alternatively the above-patch as-is would be fine to apply. :)</div><div><br></div><div>-n</div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>