Re: Psycopg 2.5 released - Mailing list psycopg

From Daniele Varrazzo
Subject Re: Psycopg 2.5 released
Date
Msg-id CA+mi_8ZKBeLzvqZghdue41BcRarDBHkVKGa9PwmWVsJk-TBcUQ@mail.gmail.com
Whole thread Raw
In response to Re: Psycopg 2.5 released  (Julian <tempura@internode.on.net>)
List psycopg
On Mon, Apr 8, 2013 at 1:57 AM, Julian <tempura@internode.on.net> wrote:

> Hi,
> Just an observation on your sites release notes:
>
> "when the connection block exits normally the current transaction is
> committed, if it exits with an exception instead the transaction is
> rolled back, *in either case the connection is closed*."
>
> Its not what I prefer, I went and checked anyway and it appears it
> doesn't (close the connection for either commit or rollback).

I think you are right: the connection is *NOT* closed after the with
block. Will fix the article, thank you very much.

-- Daniele


psycopg by date:

Previous
From: Julian
Date:
Subject: Best practice for managing connections?
Next
From: Michael van Tellingen
Date:
Subject: Re: Psycopg 2.5 released