How to reset sequences on pre-7.1

Поиск
Список
Период
Сортировка
От Matteo Beccati
Тема How to reset sequences on pre-7.1
Дата
Msg-id 2780D698C269CB4EB303715BA48B6A104D35@sole.CRP
обсуждение исходный текст
Ответы Re: How to reset sequences on pre-7.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi,

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 an hosted space that still has a 7.0 release candidate, this query
fails, telling me that I cannot use a 0 value.

Anybody knows how to reset sequences in this case?

Regards
--
Matteo Beccati
http://www.phpadsnew.com
http://phppgads.sourceforge.net



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

Предыдущее
От: "Gautham S. Rao"
Дата:
Сообщение: Re: Need some help with dates
Следующее
От: Stéphane DEWITTE
Дата:
Сообщение: Need some help in dates