Re: probably a bug of data-type serial - Mailing list pgsql-bugs

From Tom Lane
Subject Re: probably a bug of data-type serial
Date
Msg-id 14728.1003167151@sss.pgh.pa.us
Whole thread Raw
In response to probably a bug of data-type serial  (Ralf Miller <rm@topnet.de>)
List pgsql-bugs
Ralf Miller <rm@topnet.de> writes:
> The example shows that the column number of type serial is incremented
> as if the preceding insert-statement was successfull, even if it was
> not.

This is intentional.  Sequence nextval() operations do not roll back.

> The SEQUENCE corresponding to a column of type serial is not beeing
> droped
> automatically when the table containing the serial-column is droped.

This is an acknowledged problem; it'll be fixed someday.

            regards, tom lane

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #482: psql (7.1.3) doesn't like sysid=0
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #483: could not copy dump files to postgres directory