Re: problem wit hsequence as primary key

Поиск
Список
Период
Сортировка
От Rob Brown-Bayliss
Тема Re: problem wit hsequence as primary key
Дата
Msg-id 1027717504.2296.2.camel@everglade.zoism.org
обсуждение исходный текст
Ответ на Re: problem wit hsequence as primary key  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Sat, 2002-07-27 at 03:20, Tom Lane wrote:
> 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?
>

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
*

В списке pgsql-general по дате отправления:

Предыдущее
От: "Varsha Agarwal"
Дата:
Сообщение: Database connection problem
Следующее
От: "Robert J. Sanford, Jr."
Дата:
Сообщение: O'Reilly Interview on PostgreSQL