Re: psycopg2.pool connection recovery/healing

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Paul Bryan <pbryan(at)salesforce(dot)com>
Cc: "psycopg(at)postgresql(dot)org" <psycopg(at)postgresql(dot)org>
Subject: Re: psycopg2.pool connection recovery/healing
Date: 2017-01-05 12:49:22
Message-ID: CA+mi_8bp4iNcLbxpNGHR=JNML_Rq6_n0JiHsYFgRa12CP=AQoQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

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

Responses

Browse psycopg by date

  From Date Subject
Next Message Paul Bryan 2017-01-05 16:51:04 Re: psycopg2.pool connection recovery/healing
Previous Message Paul Bryan 2017-01-04 23:50:46 psycopg2.pool connection recovery/healing