Re: problem wit hsequence as primary key

From: Rob Brown-Bayliss <rob(at)zoism(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: problem wit hsequence as primary key
Date: 2002-07-26 21:05:05
Message-ID: 1027717504.2296.2.camel@everglade.zoism.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 2002-07-27 at 03:20, Tom Lane wrote:
> Rob Brown-Bayliss <rob(at)zoism(dot)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?
>

Yeah :o)

I had a break and a cup o tea and then it was obvious... Thanks

Now a nother question, useinga text based primary on large tables. Will
this slow down queries or does it not really matter?

Thanks

--

*
* Rob Brown-Bayliss
*

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Roberto Mello 2002-07-26 21:53:48 Re: RES: [GENERAL] set DateStyle to 'SQL'
Previous Message Markus Jais 2002-07-26 20:33:08 phpPgAdmin problem