Re: psycopg2 (async) socket timeout

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Jan Urbański <wulczer(at)wulczer(dot)org>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: psycopg2 (async) socket timeout
Date: 2011-02-15 01:30:50
Message-ID: AANLkTi=G0aaRoOXQKkUra_NyCYh9ULSMVoaAPj-ENmVk@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Mon, Feb 14, 2011 at 7:16 PM, Jan Urbański <wulczer(at)wulczer(dot)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

In response to

Browse psycopg by date

  From Date Subject
Next Message Marko Kreen 2011-02-15 05:39:25 Re: psycopg2 (async) socket timeout
Previous Message Jason Erickson 2011-02-15 00:35:12 Re: beta 2 release for win testing?