X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9A79252D1F for ; Thu, 11 Aug 2005 16:29:24 -0300 (ADT) 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 80645-09 for ; Thu, 11 Aug 2005 19:29:22 +0000 (GMT) Received: from hotmail.com (bay102-f2.bay102.hotmail.com [64.4.61.12]) by svr1.postgresql.org (Postfix) with ESMTP id 5948352CC2 for ; Thu, 11 Aug 2005 16:29:21 -0300 (ADT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 11 Aug 2005 12:29:22 -0700 Message-ID: Received: from 64.4.61.202 by by102fd.bay102.hotmail.msn.com with HTTP; Thu, 11 Aug 2005 19:29:22 GMT X-Originating-IP: [64.4.61.202] X-Originating-Email: [bitsandbytes88@hotmail.com] X-Sender: bitsandbytes88@hotmail.com From: "D Kavan" To: pgsql-admin@postgresql.org Subject: pg_restore Date: Thu, 11 Aug 2005 15:29:22 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 11 Aug 2005 19:29:22.0692 (UTC) FILETIME=[FA102C40:01C59EAA] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.916 tagged_above=0 required=5 tests=[AWL=-0.350, DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376, FROM_ENDS_IN_NUMS=0.516, MSGID_FROM_MTA_HEADER=0] X-Spam-Level: * X-Archive-Number: 200508/146 X-Sequence-Number: 18465 Hi all, We are running postgres 8.03. Getting a dump is no problem on our 6 GB database. However, the restore is a killer, it takes 10 minutes for the dump pg_dump, but over 5 hours for a restore. Is there a way to 'turn off transactions' on the restore to speed things up? I've tried different restore commands, but I don't see anything on transactions logging. What else could speed it up? oracle and sybase can restore the same db in just 90 minutes. Does postgres just not know how to take advantage of the resources unless different users are involved? In other words to speed it up, should I script different users to each restore some of the tables to a database and then after all the tables have restored, restore keys and then indexes? Thanks for any help. ~DjK psql dbname < dump_file pg_restore -d test_restore_2 -Fc niehs_dump.backup