FW: RESTORE A TABLE - Mailing list pgsql-sql

From Jie Liang
Subject FW: RESTORE A TABLE
Date
Msg-id 7C760DAA511DC74B99E7D22189F786F101BF20E2@MAIL01.stbernard.com
Whole thread Raw
List 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 by date:

Previous
From: Ian Lynagh
Date:
Subject: Presenting consistent data
Next
From: "Josh Berkus"
Date:
Subject: Re: SQL Challenge: Skip Weekends