Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B12791337B58 for ; Mon, 14 Mar 2011 07:18:12 -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 17575-01 for ; Mon, 14 Mar 2011 10:18:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vx0-f174.google.com (mail-vx0-f174.google.com [209.85.220.174]) by mail.postgresql.org (Postfix) with ESMTP id B49E3133616B for ; Mon, 14 Mar 2011 07:18:04 -0300 (ADT) Received: by vxi39 with SMTP id 39so4156924vxi.19 for ; Mon, 14 Mar 2011 03:18:04 -0700 (PDT) Received: by 10.220.160.16 with SMTP id l16mr3194556vcx.15.1300097884127; Mon, 14 Mar 2011 03:18:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.192.132 with HTTP; Mon, 14 Mar 2011 03:17:34 -0700 (PDT) In-Reply-To: <8CDAFB3EE5DFE5F-1AE0-21557@web-mmc-d02.sysops.aol.com> References: <8CDAFB3EE5DFE5F-1AE0-21557@web-mmc-d02.sysops.aol.com> From: Marti Raudsepp Date: Mon, 14 Mar 2011 12:17:34 +0200 Message-ID: Subject: Re: Tuning massive UPDATES and GROUP BY's? To: runner Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201103/132 X-Sequence-Number: 42811 On Sun, Mar 13, 2011 at 18:36, runner wrote: > Tried removing the indexes and other constraints just for > the import but for a noob like me, this was too much to ask. Maybe > when I get more experience. pgAdmin should make it pretty easy. Choose each index and constraint, save the code from the "SQL pane" for when you need to restore it, and do a right click -> Drop > Other than being very inefficient, and consuming > more time than necessary, is there any other down side to importing > into an indexed table? Doing so will result in somewhat larger (more bloated) indexes, but generally the performance impact of this is minimal. Regards, Marti