Re: Duplicate Unique Key constraint error

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Duplicate Unique Key constraint error
Дата
Msg-id 20070713005819.GC474@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Duplicate Unique Key constraint error  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
Список pgsql-general
Harpreet Dhaliwal escribió:
> How can one rollover a sequence back to zero after you delete records from
> a
> table with one such sequence.
> I see it starting with the last value of the sequence inserted.

You can use setval(), but normally you just leave it alone.  Having
numbers not starting from 0 is not a problem in most cases.

--
Alvaro Herrera                         http://www.flickr.com/photos/alvherre/
Hi! I'm a .signature virus!
cp me into your .signature file to help me spread!

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

Предыдущее
От: "Harpreet Dhaliwal"
Дата:
Сообщение: Re: Duplicate Unique Key constraint error
Следующее
От: "Nikolay Samokhvalov"
Дата:
Сообщение: Re: xpath_* namespace bug