Re: Handling idle connections

Поиск
Список
Период
Сортировка
Искать
От
Scott Ribe
Тема
Re: Handling idle connections
Дата
Msg-id
B13D56C5-061D-462C-86CD-CA8FE3F22B21@elevated-dev.com
Ответ на
Список
Дерево обсуждения
Handling idle connections Rajesh Kumar <rajeshkumar.dba09@gmail.com>
Re: Handling idle connections Rui DeSousa <rui@crazybean.net>
Re: Handling idle connections Rajesh Kumar <rajeshkumar.dba09@gmail.com>
Re: Handling idle connections Tom Lane <tgl@sss.pgh.pa.us>
Re: Handling idle connections Rui DeSousa <rui@crazybean.net>
Re: Handling idle connections Jeff Janes <jeff.janes@gmail.com>
Re: Handling idle connections Rajesh Kumar <rajeshkumar.dba09@gmail.com>
Re: Handling idle connections Jeff Janes <jeff.janes@gmail.com>
Re: Handling idle connections Scott Ribe <scott_ribe@elevated-dev.com>
Re: Handling idle connections Rajesh Kumar <rajeshkumar.dba09@gmail.com>
Re: Handling idle connections "David G. Johnston" <david.g.johnston@gmail.com>
Re: Handling idle connections Scott Ribe <scott_ribe@elevated-dev.com>
Re: Handling idle connections Rajesh Kumar <rajeshkumar.dba09@gmail.com>
Re: Handling idle connections Scott Ribe <scott_ribe@elevated-dev.com>
Re: Handling idle connections Erik Wienhold <ewie@ewie.name>
> I am assuming like tell them "check sessions are closed properly" like dat?

Don't open until needed, close when done. Assuming they're actually a problem--for smaller scale environments, it can be perfectly OK to have clients holding connections open for the entire client lifetime.

Set application name on connection, so that *if* there is a problem it's easier to track down.

> On Sep 26, 2023, at 8:55 AM, Jeff Janes  wrote:
> 
> You haven't answered my question.  If "query" is truly blank and it is not just a permission problem, then the issue is not that they fail to close connections after use, but rather that they open connections and then never use them.

Which could easily be a matter of some pg library being used. As far as I see, there was also never an answer to whether this is actually a problem and if so, how?

And one more: if there is a problem, why not use pgbouncer?

We've given all the information we can about how to identify such connections. Any further help would depend on more info from Rajesh.

В списке pgsql-admin по дате отправления
От: Jeff Janes
Дата:
Сообщение: Re: Handling idle connections
От: OS DB2
Дата:
Сообщение: Re: Corruption issue
FAQ