Re: problem wit hsequence as primary key - Mailing list pgsql-general

From Tom Lane
Subject Re: problem wit hsequence as primary key
Date
Msg-id 25665.1027696849@sss.pgh.pa.us
Whole thread Raw
In response to problem wit hsequence as primary key  (Rob Brown-Bayliss <rob@zoism.org>)
Responses Re: problem wit hsequence as primary key
List pgsql-general
Rob Brown-Bayliss <rob@zoism.org> writes:
>     sequence_number := to_char(nextval(''location_seq''),''99999MI'');

> The location_seq is up to 100005 at the moment so how am I getting
> duplicate primary keys?

Time for more 9's in that to_char format, perhaps?

            regards, tom lane

pgsql-general by date:

Previous
From: Don Isgitt
Date:
Subject: Re: Bad HTML in Mail List Archives
Next
From: Tom Lane
Date:
Subject: Re: Execute vacuum postgresql crash