Re: problem wit hsequence as primary key

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem wit hsequence as primary key
Дата
Msg-id 25665.1027696849@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem wit hsequence as primary key  (Rob Brown-Bayliss <rob@zoism.org>)
Ответы Re: problem wit hsequence as primary key  (Rob Brown-Bayliss <rob@zoism.org>)
Список 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 по дате отправления:

Предыдущее
От: Don Isgitt
Дата:
Сообщение: Re: Bad HTML in Mail List Archives
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Execute vacuum postgresql crash