Re: sequence problem - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: sequence problem
Date
Msg-id Pine.LNX.4.30.0105212222370.757-100000@peter.localdomain
Whole thread Raw
In response to sequence problem  ("gabi munteanu" <gmunteanu@hotmail.com>)
List pgsql-sql
gabi munteanu writes:

> if I remove a record my ids should always be like this:
>
> 1,2,3,4... and not 1,2,4,5,9,...

Sequences don't make a guarantee that the generated numbers are without
"holes".  Implementing that is rather complex.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-sql by date:

Previous
From: bboett@erm1.u-strasbg.fr (Bruno Boettcher)
Date:
Subject: how to set ownership of tables?
Next
From: Stephan Szabo
Date:
Subject: Re: sequence problem