X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 65B783A6666 for ; Tue, 14 Dec 2004 01:53:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57843-08 for ; Tue, 14 Dec 2004 01:52:59 +0000 (GMT) Received: from millenium.mst.co.jp (unknown [210.230.185.241]) by svr1.postgresql.org (Postfix) with ESMTP id BEC333A693F for ; Tue, 14 Dec 2004 01:53:00 +0000 (GMT) Received: from mst1x5r347kymb (lc12114 [192.168.1.114]) by millenium.mst.co.jp (8.11.6p2/3.7W) with SMTP id iBE1qrZ23707; Tue, 14 Dec 2004 10:52:53 +0900 Message-ID: <00ee01c4e17f$d54f59a0$7201a8c0@mst1x5r347kymb> From: "Iain" To: Cc: References: <41ADA82A.7070405@carvalhaes.net> <200412131025.54587.josh@agliodbs.com> <83210A57-4D35-11D9-9C22-000A9578CFCC@kcilink.com> <200412131043.28465.josh@agliodbs.com> <27280.1102965664@sss.pgh.pa.us> Subject: Re: pg_restore taking 4 hours! Date: Tue, 14 Dec 2004 10:54:17 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/174 X-Sequence-Number: 9549 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