Re: psycopg2.pool connection recovery/healing

From: Paul Bryan <pbryan(at)salesforce(dot)com>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: "psycopg(at)postgresql(dot)org" <psycopg(at)postgresql(dot)org>
Subject: Re: psycopg2.pool connection recovery/healing
Date: 2017-01-05 16:51:04
Message-ID: CAK_hdJX2AbnEfOh7kyfZsGcazvJ=ndurr2T5HXsm_-w8xQMGKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

Thanks!

On Thu, Jan 5, 2017 at 4:49 AM, Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com
> wrote:

> On Wed, Jan 4, 2017 at 11:50 PM, Paul Bryan <pbryan(at)salesforce(dot)com> wrote:
> > If a connection from a connection pool goes bad (e.g. got disconnected),
> > what's the right thing to do with it?
>
> If you put it back in the pool it should be detected as broken and
> replaced with a fresh one.
>
> -- Daniele
>

In response to

Browse psycopg by date

  From Date Subject
Next Message Federico Di Gregorio 2017-01-05 17:32:18 Re: speed concerns with executemany()
Previous Message Daniele Varrazzo 2017-01-05 12:49:22 Re: psycopg2.pool connection recovery/healing