pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: John Smith <sodgodofall@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Backup/Restore of single table in multi TB database
Date: Thu, 08 May 2008 07:25:16 +0100
Message-ID: <1210227916.4268.254.camel@ebony.site> (raw)
In-Reply-To: <b88f0d670805071524g1e4965cbif9b48a822dba961f@mail.gmail.com>
References: <b88f0d670805071302h469141e0ke29413edddb444e0@mail.gmail.com>
	<19037.1210196461@sss.pgh.pa.us>
	<b88f0d670805071524g1e4965cbif9b48a822dba961f@mail.gmail.com>

On Wed, 2008-05-07 at 15:24 -0700, John Smith wrote:

> Actually, I forgot to mention one more detail in my original post.
> For the table that we're looking to backup, we also want to be able to
> do incremental backups.  pg_dump will cause the entire table to be
> dumped out each time it is invoked.
> 
> With the pg_{start,stop}_backup approach, incremental backups could be
> implemented by just rsync'ing the data files for example and applying
> the incremental WALs.   So if table foo didn't change very much since
> the first backup, we would only need to rsync a small amount of data
> plus the WALs to get an incremental backup for table foo.
> 
> Besides picking up data on unwanted tables from the WAL (e.g., bar
> would appear in our recovered database even though we only wanted
> foo), do you see any other problems with this pg_{start,stop}_backup
> approach?  Admittedly, it does seem a bit hacky.

You wouldn't be the first to ask to restore only a single table.

I can produce a custom version that does that if you like, though I'm
not sure that feature would be accepted into the main code.

-- 
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com




view thread (10+ messages)  latest in thread

Message-ID: <1210227916.4268.254.camel@ebony.site>
Permalink:  ../1210227916.4268.254.camel@ebony.site/
Also on:    postgresql.org/message-id/1210227916.4268.254.camel@ebony.site

 · 

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: simon@2ndquadrant.com, sodgodofall@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Backup/Restore of single table in multi TB database
  In-Reply-To: <1210227916.4268.254.camel@ebony.site>

* 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