Re: [ADMIN] Where is the sequence value?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [ADMIN] Where is the sequence value?
Дата
Msg-id 21918.1050767477@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-sql
"Edipo E. F. Melo" <edipoelder@ig.com.br> writes:
>    So, I set i to 1 ("setval('seq', 1)"), but in my system, when I try to insert a process, the nextval
> () returns 2, not 1.

You need to clear the is_called flag too.  See the three-parameter form
of setval():
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/functions-sequence.html

            regards, tom lane


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

Предыдущее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Re: apparent problem with a PL
Следующее
От: Rajesh Kumar Mallah
Дата:
Сообщение: [REPOST] replicable problem with PL/Perl