pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: Colton A Smith <smith@cs.utk.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore speed
Date: Wed, 24 Jan 2007 19:24:24 -0500
Message-ID: <12194.1169684664@sss.pgh.pa.us> (raw)
In-Reply-To: <45B7E277.30108@commandprompt.com>
References: <Pine.LNX.4.62.0701181022110.8668@cetus5.cs.utk.edu>
	<45B7E277.30108@commandprompt.com>

"Joshua D. Drake" <jd@commandprompt.com> writes:
> Colton A Smith wrote:
>> I have a 90G postgis-enabled postgresql
>> database that I'm upgrading from 8.1.5 to
>> 8.2.1.  I initiated pg_restore nearly
>> six days ago and it's still churning away,
>> surely but slowly.  Is this amount of
>> time normal? Or have I done something
>> wrong?

> 6 days seems like an awful long time I could see 12-15 hours. What type
> of machine do you have? What was the pg_dump command you used and
> respective pg_restore?

What is the restore actually doing at the moment?  (Look in
pg_stat_activity)

For such a large DB I'd think you'd really need to increase
shared_buffers, checkpoint_segments, and maintenance_work_mem well
beyond their default values ... did you do that before starting to
restore?  (Actually I think you could probably do the latter two
on-the-fly without disturbing the restore, so that might be something
to try before giving up and starting over.)

			regards, tom lane



view thread (3+ messages)

Message-ID: <12194.1169684664@sss.pgh.pa.us>
Permalink:  ../12194.1169684664@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12194.1169684664@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, jd@commandprompt.com, smith@cs.utk.edu
  Subject: Re: pg_restore speed
  In-Reply-To: <12194.1169684664@sss.pgh.pa.us>
  References: <Pine.LNX.4.62.0701181022110.8668@cetus5.cs.utk.edu> <45B7E277.30108@commandprompt.com> <12194.1169684664@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