Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [PERFORM] 7 hrs for a pg_restore?

From: Richard Huxton <dev(at)archonet.com>
Date: Tue Feb 19 2008 - 13:13:37 EST


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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Received on Tue Feb 19 13:15:13 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 22:23:02 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library