From: | Shaul Dar <shauldar(at)gmail(dot)com> |
---|---|
To: | pgsql-performance(at)postgresql(dot)org |
Subject: | Dumping + restoring a subset of a table? |
Date: | 2009-10-06 13:16:27 |
Message-ID: | 234efe30910060616h6be54c20hf863750fd3b0260@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Hi everyone,
I am looking for a way to dump+restore a subset of a database (on another
server), using both selection and projection of the source tables (for
simplicity assume a single table).
I understand that pg_dump will not let me do this. One way I considered is
creating a view with the subset definition and dumping it instead of the
original table. In that case how do I restore the target table from the
dumped view (what does pg_dump generate for a view?)? Can I still use
pg_dump to create SQL commands (vs the binary file option), and will these
still use COPY instead of INSERT statements?
Is there another way to do this? Maybe replication? I care mostly about the
time needed to replicate the DB (subset), less so about temp space needed.
Thanks.
-- Shaul
From | Date | Subject | |
---|---|---|---|
Next Message | Nikolas Everett | 2009-10-06 13:21:08 | Re: Speed / Server |
Previous Message | Dave Dutcher | 2009-10-06 12:49:37 | Re: What is the role of #fsync and #synchronous_commit in configuration file . |