Re: Duplicated entries are not ignored even if a "do instead nothing" rule is added. - Mailing list pgsql-general

From Daniele Varrazzo
Subject Re: Duplicated entries are not ignored even if a "do instead nothing" rule is added.
Date
Msg-id CA+mi_8bWuGo_PCZQY2X6-GpgmresEyQeD8JDsh8gy3ZBmtysyg@mail.gmail.com
Whole thread Raw
In response to Re: Duplicated entries are not ignored even if a "do instead nothing" rule is added.  (Alban Hertroys <haramrae@gmail.com>)
List pgsql-general
On Wed, Jan 4, 2012 at 8:09 PM, Alban Hertroys <haramrae@gmail.com> wrote:

> On 4 Jan 2012, at 3:03, 邓尧 wrote:

>> True, I don't need transactions, neither do I want them, but psycopg2 create transactions for me automatically :-(
>
> Well, if psycopg didn't, Postgres would wrap each statement in a transaction anyway. But that doesn't matter.

FYI, you can have psycopg in autocommit mode if you need that:
<http://initd.org/psycopg/docs/connection.html#connection.autocommit>.

-- Daniele

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Duplicated entries are not ignored even if a "do instead nothing" rule is added.
Next
From: Birta Levente
Date:
Subject: Re: Postgresql 9.1 logging