Re: Backup/Restore of single table in multi TB database - Mailing list pgsql-general

From David Wilson
Subject Re: Backup/Restore of single table in multi TB database
Date
Msg-id e7f9235d0805071309o6d6d7778r6920e5df03a55d3b@mail.gmail.com
Whole thread Raw
In response to Backup/Restore of single table in multi TB database  ("John Smith" <sodgodofall@gmail.com>)
Responses Re: Backup/Restore of single table in multi TB database  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-general
On Wed, May 7, 2008 at 4:02 PM, John Smith <sodgodofall@gmail.com> wrote:

>  Does anyone see a problem with this approach (e.g., correctness,
>  performance, etc.)?  Or is there perhaps an alternative approach using
>  some other postgresql mechanism that I'm not aware of?

Did you already look at and reject pg_dump for some reason? You can
restrict it to specific tables to dump, and it can work concurrently
with a running system. Your database is large, but how large are the
individual tables you're interested in backing up? pg_dump will be
slower than a file copy, but may be sufficient for your purpose and
will have guaranteed correctness.

I'm fairly certain that you have to be very careful about doing simple
file copies while the system is running, as the files may end up out
of sync based on when each individual one is copied. I haven't done it
myself, but I do know that there are a lot of caveats that someone
with more experience doing that type of backup can hopefully point you
to.

--
- David T. Wilson
david.t.wilson@gmail.com

pgsql-general by date:

Previous
From: "John Smith"
Date:
Subject: Backup/Restore of single table in multi TB database
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Backup/Restore of single table in multi TB database