Re: Discarding DISCARD ALL - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Discarding DISCARD ALL
Date
Msg-id 6d9c5bbd-4eb5-f27b-0487-e3ceaf05e214@enterprisedb.com
Whole thread Raw
In response to Discarding DISCARD ALL  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: Discarding DISCARD ALL  (James Coleman <jtc331@gmail.com>)
List pgsql-hackers
On 2020-12-23 15:33, Simon Riggs wrote:
> Poolers such as pgbouncer would then be able to connect transaction
> mode pools by setting transaction_cleanup=on at time of connection,
> avoiding any need to issue a server_reset_query, removing the DISCARD
> ALL command from the normal execution path, while still achieving the
> same thing.

PgBouncer does not send DISCARD ALL in transaction mode.  There is a 
separate setting to do that, but it's not the default, and it's more of 
a workaround for bad client code.  So I don't know if this feature would 
be of much use for PgBouncer.  Other connection poolers might have other 
opinions.




pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Printing LSN made easy
Next
From: Ashutosh Bapat
Date:
Subject: Re: Printing LSN made easy