Re: Discarding DISCARD ALL

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Discarding DISCARD ALL
Date: 2021-01-20 07:48:15
Message-ID: 6d9c5bbd-4eb5-f27b-0487-e3ceaf05e214@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2021-01-20 07:50:11 Re: Printing LSN made easy
Previous Message Michael Paquier 2021-01-20 07:40:59 Re: Printing LSN made easy