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

From Peter Eisentraut
Subject Re: probably a bug of data-type serial
Date
Msg-id Pine.LNX.4.30.0110152112290.631-100000@peter.localdomain
Whole thread Raw
In response to probably a bug of data-type serial  (Ralf Miller <rm@topnet.de>)
List 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@gmx.net   http://funkturm.homeip.net/~peter

pgsql-bugs by date:

Previous
From: "And. Andruikhanov"
Date:
Subject: reclaim database storage
Next
From: Bruce Momjian
Date:
Subject: Re: Bug #478: Integer overflow in pg_dump