pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: John Smith <sodgodofall@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Backup/Restore of single table in multi TB database
Date: Wed, 7 May 2008 13:11:25 -0700
Message-ID: <20080507131125.1dadb799@jd-laptop> (raw)
In-Reply-To: <b88f0d670805071302h469141e0ke29413edddb444e0@mail.gmail.com>
References: <b88f0d670805071302h469141e0ke29413edddb444e0@mail.gmail.com>

On Wed, 7 May 2008 13:02:57 -0700
"John Smith" <sodgodofall@gmail.com> wrote:

> Hi,
> 
> I have a large database (multiple TBs) where I'd like to be able to do
> a backup/restore of just a particular table (call it foo).  Because
> the database is large, the time for a full backup would be
> prohibitive.  Also, whatever backup mechanism we do use needs to keep
> the system online (i.e., users must still be allowed to update table
> foo while we're taking the backup).

> 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?

Why are you not just using pg_dump -t ? Are you saying the backup of
the single table pg_dump takes to long? Perhaps you could use slony
with table sets?

Joshua D. Drake



-- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (10+ messages)  latest in thread

Message-ID: <20080507131125.1dadb799@jd-laptop>
Permalink:  ../20080507131125.1dadb799@jd-laptop/
Also on:    postgresql.org/message-id/20080507131125.1dadb799@jd-laptop

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jd@commandprompt.com, sodgodofall@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Backup/Restore of single table in multi TB database
  In-Reply-To: <20080507131125.1dadb799@jd-laptop>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox