Purpose of bouncer is handle idle connections right? Is there a time period for the DISCARD ALL to go away? If so, how to configure?
You can configure pgbouncer to close unused connections periodically - and indeed the defaults do this. server_idle_timeout of 10 minutes.
David J.