Re: How to reset a sequence so it will start with 1 again?

Поиск
Список
Период
Сортировка
От Nico Grubert
Тема Re: How to reset a sequence so it will start with 1 again?
Дата
Msg-id 43C766F3.2070907@gmail.com
обсуждение исходный текст
Ответ на Re: How to reset a sequence so it will start with 1 again?  (Michael Glaesemann <grzm@myrealbox.com>)
Список pgsql-general
> Take a look at the docs, in particular the three-parameter version of
> setval and the is_called flag.
> http://www.postgresql.org/docs/current/interactive/functions- sequence.html

Thanks Michael,

SELECT setval('tblperson_id_seq', 1, false);
will do exactly what I supposed to get.

Nico

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: How to reset a sequence so it will start with 1 again?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Plans for 8.2?