Re: probably a bug of data-type serial

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ralf Miller <rm(at)topnet(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: probably a bug of data-type serial
Date: 2001-10-15 17:32:31
Message-ID: 14728.1003167151@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Ralf Miller <rm(at)topnet(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2001-10-15 18:16:23 Re: ecpg - GRANT bug
Previous Message Lora Goldston 2001-10-15 16:23:49 unknown object exception in postgresql-7.1.3 jdbc driver