Re: Bug? - Mailing list pgsql-general

From Tom Lane
Subject Re: Bug?
Date
Msg-id 19638.1005864584@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bug?  ("Andrew G. Hammond" <drew@xyzzy.dhs.org>)
List pgsql-general
"Andrew G. Hammond" <drew@xyzzy.dhs.org> writes:
> Now maybe THAT behaviour should be a bug.  Since the nextval() is
> implicit in the second INSERT, and the second INSERT fails, it would
> make sense to roll back the nextval().

nextval() is never rolled back; this is quite intentional.  See many past
discussions in the archives ...

            regards, tom lane

pgsql-general by date:

Previous
From: "Gyozo Papp"
Date:
Subject: Re: [PHP] psql with PHP question
Next
From: Glenn Sullivan
Date:
Subject: spectral datasets in postgresql