Re: SET autocommit begins transaction?

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Rod Taylor <rbt(at)rbt(dot)ca>, Thomas Lockhart <lockhart(at)fourpalms(dot)org>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: SET autocommit begins transaction?
Date: 2002-09-19 00:49:22
Message-ID: 20020919004922.GO99484@perrin.int.nxad.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> Yes, with the BEGIN, it will roll back. With autocommit off, this:
>
> > >
> > > set statement_timeout = 20;
> > > query_with_error;
> > > set statement_timeout = 0;
> > > COMMIT;
>
> will not roll back to 0. It will be 20.

But that's the correct/expected behavior, is it not? That's what I'd
expect at least. I'd think it's a gotcha for those that aren't good
about explicitly calling BEGIN, but most libraries should do that for
you, ruby-dbi does and used to be overly zealous about that actually
(I just fixed that last night as a matter of fact). -sc

--
Sean Chittenden

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2002-09-19 00:52:07 Re: SET autocommit begins transaction?
Previous Message Bruce Momjian 2002-09-19 00:44:36 Re: SET autocommit begins transaction?