differences between pg_dump and pg_restore with -t

Поиск
Список
Период
Сортировка
От alexandre - aldeia digital
Тема differences between pg_dump and pg_restore with -t
Дата
Msg-id 43F0BD04.4080405@ad2.com.br
обсуждение исходный текст
Список pgsql-general
Hi,

If I do:

pg_dump -Fc -t table database > table.sql

The pg_dump returns the DDL of the table, the data and the DDL for
indexes and PK. If I use -s, only the structure, but all is returned.

But if I do:

pg_dump -Fc database > backup.file
pg_restore -Fc -t table backup.file > table.sql

Only the DDL of table and data is returned, but not indexes, etc.

Question:

How can I restore a table with all other dependences from a custom file
database ?

PG: 8.1.2 and 8.0.6

Thanks,

Alexandre



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

Предыдущее
От: sualeh.fatehi@gmail.com
Дата:
Сообщение: Re: Database Comparison tool?
Следующее
От: Russell Smith
Дата:
Сообщение: Object ownership in a new database