keepalive problem with libpg connection

Поиск
Список
Период
Сортировка
От Juan Backson
Тема keepalive problem with libpg connection
Дата
Msg-id 27c25bc40908110056v76a03483uf42355c5648c15b@mail.gmail.com
обсуждение исходный текст
Ответы Re: keepalive problem with libpg connection
Список pgsql-general
Hi,

I am writing my own connection pool for libpq's connection. 

My goal is to try to reduce the amount of time spent in opening and closing socket.   However, I see that Postgres would close my connection after every so often.

What is the best solution for that? Should I regularly send some "Select 1" to keep the connection alive or is there a better way to write a connection pool for libpq?


Any suggestion will be greatly appreciated.

JB

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

Предыдущее
От: Juan Backson
Дата:
Сообщение: Re: Need help with libpq and PQexec[RESOLVEd]
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: keepalive problem with libpg connection