Re: probably a bug of data-type serial

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
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 19:28:52
Message-ID: Pine.LNX.4.30.0110152112290.631-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Ralf Miller 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.

The serial type does not provide consecutive numbers, only unique ones.

> The SEQUENCE corresponding to a column of type serial is not beeing
> droped automatically when the table containing the serial-column is
> droped. Does it make sense to store a sequence without a corresponding
> table ?

Possibly you want to use it for more than one table.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kris Houghton 2001-10-15 22:06:13 psql core dump
Previous Message Bruce Momjian 2001-10-15 18:16:38 Re: ecpg - GRANT bug