Re: Problem with sequences on a reload of a pg_dump file

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with sequences on a reload of a pg_dump file
Дата
Msg-id 29238.1085603487@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with sequences on a reload of a pg_dump file  (Sean Shanny <shannyconsulting@earthlink.net>)
Ответы Re: Problem with sequences on a reload of a pg_dump file  (Sean Shanny <shannyconsulting@earthlink.net>)
Список pgsql-general
Sean Shanny <shannyconsulting@earthlink.net> writes:
> My problem is that all the sequences were reset to start a 1. :-(   Did
> I do something wrong as this has never happened before?

Did the reload actually complete, or did it fail partway through?

> Also, can I
> simply figure out what the  next value should be and manually update the
> last_value column in each affected sequence?

No, but you could use setval().

            regards, tom lane

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

Предыдущее
От: "Lee Harr"
Дата:
Сообщение: Re: Remote X viewing of pgaccess
Следующее
От: Tom Allison
Дата:
Сообщение: Re: insert/update