pg_dump incorrect sequence value

Поиск
Список
Период
Сортировка
От Joshua L. San Juan
Тема pg_dump incorrect sequence value
Дата
Msg-id 1062568139.10952.18.camel@joshua.q-linux.com
обсуждение исходный текст
Ответы Re: pg_dump incorrect sequence value
Список pgsql-general
Hi,

I had dumped data using the command:

pg_dump -U dbowner dbname -a -t table -f table-data.sql

two tables (e.g. table1, table2).

In the first table - the correct sequence was set as can
be seen at the end of the dump file:

....
SELECT pg_catalog.setval ('table1_id_seq', 20, true);

but in the second table - the sequence was incorrect:

...
SELECT pg_catalog.setval ('table2_id_seq', 1, true);

Question:
How do I correct this so that dumping data sets the
correct sequence value?

Using:
Red Hat 8
Linux 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 GNU/Linux

postgresql-libs-7.3.3-1PGDG
postgresql-tcl-7.3.3-1PGDG
postgresql-server-7.3.3-1PGDG
postgresql-7.3.3-1PGDG
postgresql-libs-7.2.2-1
postgresql-contrib-7.3.3-1PGDG



TIA,

Joshua





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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: French translation
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: Debian Woody 7.3.4 packages?