Re: Possible bug in 7.4.5 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Possible bug in 7.4.5
Date
Msg-id 25521.1097071907@sss.pgh.pa.us
Whole thread Raw
In response to Possible bug in 7.4.5  (Devrim GUNDUZ <devrim@gunduz.org>)
Responses Re: Possible bug in 7.4.5  (Devrim GUNDUZ <devrim@gunduz.org>)
List pgsql-bugs
Devrim GUNDUZ <devrim@gunduz.org> writes:
> Am I missing something, or is it a bug? I can't reproduce it in 8.0beta2.

8.0 actually behaves the same way: the COMMIT gets you out of the
transaction block.  It just tells you that it's treating it as a
rollback:

regression=# comm;
ERROR:  syntax error at or near "comm" at character 1
LINE 1: comm;
        ^
regression=# commit;
ROLLBACK
regression=#

whereas prior versions did the rollback but still reported the command
tag as COMMIT.  AFAIR, Postgres has always acted that way.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Possible bug in 7.4.5
Next
From: Tom Lane
Date:
Subject: Re: BUG #1280: Unexpected EOF at Client Connection