pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Douglas J Hunley <doug@hunley.homeip.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: 7 hrs for a pg_restore?
Date: Tue, 19 Feb 2008 10:12:54 -0800
Message-ID: <20080219101254.754bd94d@commandprompt.com> (raw)
In-Reply-To: <200802191303.58840.doug@hunley.homeip.net>
References: <200802191303.58840.doug@hunley.homeip.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 19 Feb 2008 13:03:58 -0500
Douglas J Hunley <doug@hunley.homeip.net> wrote:

> I spent a whopping seven hours restoring a database late Fri nite for
> a client. We stopped the application, ran pg_dump -v -Ft -b -o $db > 
> ~/pre_8.3.tar on the 8.2.x db, and then upgrading the software to
> 8.3. I then did a pg_restore -v -d $db ./pre_8.3.tar and watched it
> positively crawl. I'll grant you that it's a 5.1G tar file, but 7
> hours seems excessive. 
> 
> Is that kind of timeframe 'abnormal' or am I just impatient? :) If
> the former, I can provide whatever you need, just ask for it. 
> Thanks!

7 hours for 5.1 G is excessive. It took me 11 hours to do 220G :). It
would be helpful if we knew what the machine was doing. Was it IO
bound? How much ram does it have? Is it just a single HD drive? What
are your settings for postgresql?

Joshua D. Drake


- -- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL SPI Liaison | SPI Director |  PostgreSQL political pundit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHuxwoATb/zqfZUUQRAjNzAJ9FYBIdEpytIWHtvuqC2L0Phah9EwCfdGrZ
kY1wItUqdtJ127ZA1Wl+95s=
=vvm+
-----END PGP SIGNATURE-----


view thread (42+ messages)  latest in thread

Message-ID: <20080219101254.754bd94d@commandprompt.com>
Permalink:  ../20080219101254.754bd94d@commandprompt.com/
Also on:    postgresql.org/message-id/20080219101254.754bd94d@commandprompt.com

 · 

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, doug@hunley.homeip.net
  Subject: Re: 7 hrs for a pg_restore?
  In-Reply-To: <20080219101254.754bd94d@commandprompt.com>

* 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