Re: Fast backup/restore

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: Vivek Khera <vivek(at)khera(dot)org>
Cc: Steve Poe <steve(dot)poe(at)gmail(dot)com>, "Pgsql-General(at)Postgresql(dot)Org general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Fast backup/restore
Date: 2006-10-18 21:07:22
Message-ID: 20061018210721.GA85041@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 17, 2006 at 02:43:28PM -0400, Vivek Khera wrote:
>
> On Oct 17, 2006, at 2:35 PM, Steve Poe wrote:
>
> >Vivek,
> >
> >What methods of backup do you recommend for medium to large
> >databases? In our example, we have a 20GB database and it takes 2
> >hrs to load from a pg_dump file.
> >
>
> my largest db is about 60Gb with indexes. reloading the data (about
> 30Gb) takes 1 hour from compressed format pg_dump, and another two to
> reindex.
>
> for increasing reload size, bump your checkpoint_segments to
> something big, like 128 or 256 depending on how much disk space you
> can spare for it.

Other hints for restoring from pg_dump:

also increase wal_buffers
fsync=off
set maintenance_work_mem as high as you can (note that values over 1G
generally don't work).
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2006-10-18 21:08:53 Re: Real time query analyzer
Previous Message Tom Lane 2006-10-18 21:05:48 Re: Stats Collector Won't Start