pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ruairi <rcarroll@bluemetrix.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Restore of pg_dump taking a long time...
Date: Wed, 24 May 2006 14:47:31 -0400
Message-ID: <468.1148496451@sss.pgh.pa.us> (raw)
In-Reply-To: <008c01c67f26$9848caf0$2815a8c0@D5T7W62J>
References: <008c01c67f26$9848caf0$2815a8c0@D5T7W62J>

"Ruairi" <rcarroll@bluemetrix.com> writes:
> I'm currently restoring a fairly large DB from a pg_dump and it's taking 
> about 12 hours to finish. The main part of this time is spent creating 
> indexes. Is there anyway I can speed up the restore process, or do i just 
> have to wait?

There's not much you can do to improve the performance of a restore
already in progress.  Next time you might want to think about kicking up
maintenance_work_mem before you start it; that's about the only thing
you can really do to speed up index builds.

(Actually, if there are lots of indexes yet to be built, increasing
the setting in postgresql.conf and SIGHUP'ing the postmaster could
be worth doing, as that should affect the builds yet to be done.)

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <468.1148496451@sss.pgh.pa.us>
Permalink:  ../468.1148496451@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/468.1148496451@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rcarroll@bluemetrix.com
  Subject: Re: Restore of pg_dump taking a long time...
  In-Reply-To: <468.1148496451@sss.pgh.pa.us>
  References: <008c01c67f26$9848caf0$2815a8c0@D5T7W62J> <468.1148496451@sss.pgh.pa.us>

* 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