Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK
Date
Msg-id 200410271800.i9RI0Po28721@candle.pha.pa.us
Whole thread Raw
In response to Re: 8.0b4: COMMIT outside of a transaction echoes  (Oliver Elphick <olly@lfix.co.uk>)
Responses Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK
List pgsql-hackers
Oliver Elphick wrote:
> On Tue, 2004-10-26 at 21:42 -0400, Bruce Momjian wrote:
> > > test=> begin;
> > > BEGIN
> > > test=> commit;
> > > COMMIT
> > > test=> commit;
> > > WARNING:  there is no transaction in progress
> > > ROLLBACK
> > > 
> > > Is there any reason ROLLBACK and not COMMIT is echoed here?
> > 
> > Because the transaction was not committed, but rather rolled back.
> 
> It's still a misleading message; in those circumstances, how about
> returning "NO ACTION" instead?

Uh, it took a lot of discussion to agree on ROLLBACK.  It would take
even more discussion to add a new tag return value.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Pierre-Frédéric Caillaud
Date:
Subject: Re: [GENERAL] copy - fields enclosed by, ignore x lines
Next
From: Reini Urban
Date:
Subject: Re: src/timezone/pgtz __imp__my_exec_path