Re: dump and sequence initilizing

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: dump and sequence initilizing
Дата
Msg-id 20031215122216.GB19153@wolff.to
обсуждение исходный текст
Ответ на dump and sequence initilizing  (Markus Rebbert <markus.rebbert@freenet.de>)
Список pgsql-general
On Mon, Dec 15, 2003 at 13:19:48 +0100,
  Markus Rebbert <markus.rebbert@freenet.de> wrote:
> Hi list,
>
> what happens with sequences if i dump a database and i want to reload
> it?
>
> Do i have to initialize the sequences like
> SELECT setval('sequence', max(id)) FROM table;
> ?

Sequence values should be part of the dump.

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

Предыдущее
От: Markus Rebbert
Дата:
Сообщение: dump and sequence initilizing
Следующее
От: "Johnson, Shaunn"
Дата:
Сообщение: PostgreSQL on Windows Server 2003