Re: Serial Type

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Christian Marschalek <cm(at)chello(dot)at>
Cc: "[GENERAL] PostgreSQL" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Serial Type
Date: 2001-05-02 17:26:18
Message-ID: Pine.LNX.4.30.0105021925280.759-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Christian Marschalek writes:

> The serial data type automaticaly takes the next higher value, but what
> if there's a drop and I want to assing 3 even if there are 20 records
> and the next higher number would be 21 not 3?

Then you can't use the serial type. Coding hole-filling serial numbers
can be quite tricky and slow.

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

In response to

  • Serial Type at 2001-05-01 17:44:42 from Christian Marschalek

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-05-02 17:30:13 Re: Improve a query...
Previous Message Gregory Wood 2001-05-02 16:52:18 Update Triggers & NULLs