pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.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 18:13:37 +0000
Message-ID: <47BB1C51.6010203@archonet.com> (raw)
In-Reply-To: <200802191303.58840.doug@hunley.homeip.net>
References: <200802191303.58840.doug@hunley.homeip.net>

Douglas J Hunley 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. 

Depends, both on the machine and the database.

What sort of disk i/o are you seeing, what's the cpu(s) doing, and 
what's the restore taking so long over (since you have -v)?

Oh, and have you tweaked the configuration settings for the restore? 
Lots of work_mem, turn fsync off, that sort of thing.

-- 
   Richard Huxton
   Archonet Ltd



view thread (42+ messages)  latest in thread

Message-ID: <47BB1C51.6010203@archonet.com>
Permalink:  ../47BB1C51.6010203@archonet.com/
Also on:    postgresql.org/message-id/47BB1C51.6010203@archonet.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: dev@archonet.com, doug@hunley.homeip.net
  Subject: Re: 7 hrs for a pg_restore?
  In-Reply-To: <47BB1C51.6010203@archonet.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