Re: Does psql use nested transactions?

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Does psql use nested transactions?
Date: 2004-08-18 04:58:31
Message-ID: Pine.LNX.4.44.0408180653540.9559-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 17 Aug 2004, Greg Stark wrote:

> With Postgres I effectively have to work in autocommit mode. Starting over
> from scratch every time I make a typo is infeasible. It feels like trying to
> type in a C program using "cat". I've done it before but it's not something I
> want to repeat often.

I agree. I would like to not use autocommit but I do way to many syntax
errors for it to be practical in pg.

Autocommit for me is just a hack to get around the above "limitation".

> In an ideal world I would actually have suggested all drivers would want to
> work this way.

For interactive use I'd like simple errors like syntax error to not abort
a transaction. For other uses it's good that it aborts.

--
/Dennis Björklund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Jowett 2004-08-18 05:36:52 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks
Previous Message Bruce Momjian 2004-08-18 03:36:30 Re: to_char() and negative intervals