Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7C3D9B5DC0F for ; Thu, 15 Sep 2011 19:33:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 80360-09 for ; Thu, 15 Sep 2011 22:32:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 86FEDB5DC25 for ; Thu, 15 Sep 2011 19:32:54 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R4KUH-0002YP-CP for pgsql-admin@postgresql.org; Thu, 15 Sep 2011 15:32:53 -0700 Date: Thu, 15 Sep 2011 15:32:53 -0700 (PDT) From: "marvin.deoliveira" To: pgsql-admin@postgresql.org Message-ID: <1316125973378-4808653.post@n5.nabble.com> Subject: RESTORE IS TO SLOW MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.739 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, SUBJ_ALL_CAPS=1.506, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201109/104 X-Sequence-Number: 38341 Hi. I'm restoring a database (only rows) that has some tables with 9 millions rows and others have even more. It's going to slow ( more than 24 hours by now ). I'm disabling the triggers but I guess if I drop the indexes it will have more performance. Am I right? If yes, does anyone have a script that generates the drop and create indexes? ----- Marcos Oliveira And I still haven't found what I'm looking for... -- View this message in context: http://postgresql.1045698.n5.nabble.com/RESTORE-IS-TO-SLOW-tp4808653p4808653.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.