Re: psycopg2 (async) socket timeout

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: psycopg2 (async) socket timeout
Дата
Msg-id AANLkTi=G0aaRoOXQKkUra_NyCYh9ULSMVoaAPj-ENmVk@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psycopg2 (async) socket timeout  (Jan Urbański <wulczer@wulczer.org>)
Список psycopg
On Mon, Feb 14, 2011 at 7:16 PM, Jan Urbański <wulczer@wulczer.org> wrote:

> Actually, libpq recently got a feature called PQPing that just checks
> the state of the connection. So you can have timeouts on your queries
> and periodic PQPings when you're not running anything. Reminds me:
> psycopg2 needs to support PQPing, but that should be easy.

That's tasty. It's too early now to include something only available
in PG 9.1, but a psycopg2.ping(dsn_or_params) would actually be
useful.

-- Daniele

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

Предыдущее
От: Jason Erickson
Дата:
Сообщение: Re: beta 2 release for win testing?
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: psycopg2 (async) socket timeout