Skip site navigation (1) Skip section navigation (2)

Re: 7 hrs for a pg_restore?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Douglas J Hunley <doug(at)hunley(dot)homeip(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: 7 hrs for a pg_restore?
Date: 2008-02-19 18:12:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Hash: SHA1

On Tue, 19 Feb 2008 13:03:58 -0500
Douglas J Hunley <doug(at)hunley(dot)homeip(dot)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: 
PostgreSQL Community Conference:
Donate to the PostgreSQL Project:
PostgreSQL SPI Liaison | SPI Director |  PostgreSQL political pundit

Version: GnuPG v1.4.6 (GNU/Linux)


In response to


pgsql-performance by date

Next:From: Richard HuxtonDate: 2008-02-19 18:13:37
Subject: Re: 7 hrs for a pg_restore?
Previous:From: Douglas J HunleyDate: 2008-02-19 18:03:58
Subject: 7 hrs for a pg_restore?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group