Re: pg_restore taking 4 hours!

From: "Iain" <iain(at)mst(dot)co(dot)jp>
To: <grupos(at)carvalhaes(dot)net>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: pg_restore taking 4 hours!
Date: 2004-12-14 01:54:17
Message-ID: 00ee01c4e17f$d54f59a0$7201a8c0@mst1x5r347kymb
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

Hi,

Sorry, I didn't catch the original message, so I'm not sure if the original
poster mentioned the postgres version that he's using.

I just thought that I'd contribute this observation.

I have a DB that takes several hours to restore under 7,1 but completes in
around 10 minutes on 7.4. The main reason for this is that by default the
7.4 restore delays creation of PKs and indexes until after the data load,
whereas 7.1 doesn't.

I noticed that 7.1 has a re-arrange option that reportedly delays the pks
and indexes, so presumably this would have alleviated the problem.

I also noticed that a dumpfile created under 7.1 took hours to restore using
7.4 to load it as the order remained in the default of 7.1.

I don'tknow when the default behaviour changed, but I get the feeling it may
have been with 7.4.

HTH
Iain

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alex 2004-12-14 02:37:40 Help needed with QueryPlan
Previous Message Alain M. Gaudrault 2004-12-14 01:31:25 java.sql.SQLException: ERROR: Relation 38868974 does not exist

Browse pgsql-performance by date

  From Date Subject
Next Message Spiegelberg, Greg 2004-12-14 04:07:27 Re: Trying to create multi db query in one large querie
Previous Message Hasnul Fadhly bin Hasan 2004-12-14 01:44:56 Trying to create multi db query in one large queries