Re: How to reset sequences on pre-7.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to reset sequences on pre-7.1
Дата
Msg-id 6669.1019057135@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to reset sequences on pre-7.1  ("Matteo Beccati" <m.beccati@crpsoftware.it>)
Список pgsql-sql
"Matteo Beccati" <m.beccati@crpsoftware.it> writes:
> I usually use a:

> SELECT setval('seq_name', NULL);

> to reset sequences, so the next time it's called it returns '1'. This
> works in all Pg releases I've ever tested but 7.0.

On all recent releases, that is a complete no-op, because setval() is
a strict function.  Better check what you were actually doing.
        regards, tom lane


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

Предыдущее
От: "Miguel Carvalho"
Дата:
Сообщение: Re: Need some help with dates
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Need some help with dates