Re: bug in setval?

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: bug in setval?
Дата
Msg-id 3E6FFF9E.40504@joeconway.com
обсуждение исходный текст
Ответ на bug in setval?  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne wrote:
> How do I set the sequence to have next value = 1?  Surely the bounds should
> begin at zero?
> 

No; see:
http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/functions-sequence.html

Notice the is_called flag. I think this does what you want:  SELECT setval('foo', 1, false);

Joe



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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: bug in setval?
Следующее
От: Joe Conway
Дата:
Сообщение: Re: SQL99 ARRAY support proposal