Re: uncommited question - Mailing list pgsql-general

From Nigel J. Andrews
Subject Re: uncommited question
Date
Msg-id Pine.LNX.4.21.0208092209350.3235-100000@ponder.fairway2k.co.uk
Whole thread Raw
In response to Re: uncommited question  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: uncommited question  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
On Fri, 9 Aug 2002, scott.marlowe wrote:
>
> Postgresql is in autocommit mode until you initiate a transaction with a
> begin statement.
>
> I.e. when you enter the psql monitor, and type in:
>
> update table set field1='something' where id=45;
>
> Postgresql internally wraps the update in the equivalent of a begin;end;
> pair.
>
> There was some talk of making psql run in a kind of auto-transact mode,
> where it would throw a begin; when you started it up, and another when you
> did a commit or rollback.  I haven't seen any work done on it though.  I
> kinda prefer the way postgresql does it, but can understand the
> advantages to the way Oracle et. al. do it.


This caught me out when I started with PostgreSQL as well. It also took me a
while to work out from the documentation that autocommit was not some sort of
configuration parameter and was simply a BEGIN statement. If someone can bear
the boredom I would request that the documentation is changed to make this
clear. I might have a quick scan through the directory tree myself this weekend
to see what format the docs are in.


--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants


pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: oid's and primary keys on insert
Next
From: Rob Brown-Bayliss
Date:
Subject: Re: oid's and primary keys on insert