FW: RESTORE A TABLE

Поиск
Список
Период
Сортировка
От Jie Liang
Тема FW: RESTORE A TABLE
Дата
Msg-id 7C760DAA511DC74B99E7D22189F786F101BF20E2@MAIL01.stbernard.com
обсуждение исходный текст
Список pgsql-sql

I have serveral tables that they have more then 2 millions,
I want dump they out from one server and then restore them back on
another server every day, the questions are:
1. What is the fastest way to dump/restore my data, I am try to use:  pg_dump -aRt mytable -Fc -f mytable dbname
pg_restore-aRt mytable -d dbname mytable  but this takes too long to restore.
 
2. Is any way to disable unique index checking when loading, then enable  the index after restored?



Jie Liang


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

Предыдущее
От: Ian Lynagh
Дата:
Сообщение: Presenting consistent data
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: SQL Challenge: Skip Weekends