Re: COMMIT in PostgreSQL - Mailing list pgsql-general

From Tom Lane
Subject Re: COMMIT in PostgreSQL
Date
Msg-id 12324.1027086530@sss.pgh.pa.us
Whole thread Raw
In response to Re: COMMIT in PostgreSQL  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: COMMIT in PostgreSQL  (Adrian 'Dagurashibanipal' von Bidder <avbidder@fortytwo.ch>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Sat, Jul 20, 2002 at 03:03:02PM +0300, stefan@extum.com wrote:
>> thanks a lot all for comments. So in PostgreSQL each query is a
>> transaction ?

> If you want them that way. If you want to combine them into one transaction,
> you use BEGIN.

Right; otherwise you get the sort of behavior that some other databases
call auto-commit.

While we can't change this without breaking huge amounts of client code,
there has been talk of offering a parameter setting that could be
changed to support the SQL-standard behavior (which could be thought of
as auto-BEGIN in Postgres terms: any statement implicitly causes a
BEGIN, and then you stay in that transaction until you explicitly say
COMMIT).

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem using ?# with polygon
Next
From: Tom Lane
Date:
Subject: Re: sequence scan, but indexed tables