Re: Discard All in pgbouncer

Поиск
Список
Период
Сортировка
От Rajesh Kumar
Тема Re: Discard All in pgbouncer
Дата
Msg-id CAJk5AtbOeXVLDj5frFBy3Bw9xxja-bY1hcObMWonQ-xW-Oq=HQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Discard All in pgbouncer  (Samed YILDIRIM <samed@reddoc.net>)
Ответы Re: Discard All in pgbouncer  (Scott Ribe <scott_ribe@elevated-dev.com>)
Re: Discard All in pgbouncer  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Discard All in pgbouncer  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-admin
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?

The part I don't understand is if bunch of connections in the name of Discard all is idle ,  what difference it make?

On Mon, 9 Oct 2023, 19:42 Samed YILDIRIM, <samed@reddoc.net> wrote:
Hi Rajesh,

DISCARD ALL is the query that is executed by PgBouncer in order to sanitise a database session before assigning it to another client. If you see this query in pg_stat_activity and status of the session is idle, most probably it is ok. Probably what you see is the last executed query for the session. And the session is idle and waiting to be assigned to a client. :)

Best regards.
Samed YILDIRIM

On Mon, 9 Oct 2023, 17:07 Rajesh Kumar, <rajeshkumar.dba09@gmail.com> wrote:
Hi,

I could see queries like DISCARD ALL is idle for more than 5minutes (we are using pgbouncer).

Why is it idle for more than 5mns? I read about pgbouncer and could not understand this thing. If resetting a connection using query becomes one idle connection, I don't understand the pooling system here 

Plz help

В списке pgsql-admin по дате отправления:

Предыдущее
От: Ron
Дата:
Сообщение: Re: Discard All in pgbouncer
Следующее
От: Scott Ribe
Дата:
Сообщение: Re: Discard All in pgbouncer