Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 687162E004F for ; Fri, 2 May 2008 18:30:37 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 37358-01-7 for ; Fri, 2 May 2008 18:30:21 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.230]) by developer.postgresql.org (Postfix) with ESMTP id A915B2E005F for ; Fri, 2 May 2008 18:30:22 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1007857rvf.43 for ; Fri, 02 May 2008 14:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=mAW13Cz+1mM4uk9I1jfz/nNpNSB0/zZGRjKO9QqXnNY=; b=bqu+oHLVylefxJF9tHbbhQA4p651UF0eE5+3gB5+bTk6CgJMSyFi6Q9eFwZRwZPJ7Eg18G6UdrN3Lu9ce+iCUJMQWS6/q9+PF51N47l5+dGU1UWVMXQ2OqUctVNLTDwHefoHzcbVaYyrh7u+WevG0EMqi5yu24YWTqA2m7thHso= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=LTUXwIx+QUkw1Q+FL05zGu4MKXf0ygiDnFHYirLGAEpBxTnPXaAzpwCL6P8VT9vjhMubfgJFuT3/Ot2K6XJ+T/HsDLO3U8yYVdOVqXGANkQGSWQJDGSOS3UnyrP4FNUBHpYNGnIiwIODEP2KXLwlDCo5LHHgcMdRjWs49ucB5BA= Received: by 10.141.87.13 with SMTP id p13mr1560935rvl.55.1209763821548; Fri, 02 May 2008 14:30:21 -0700 (PDT) Received: from ?192.168.1.100? ( [24.19.22.42]) by mx.google.com with ESMTPS id k2sm4937443rvb.4.2008.05.02.14.30.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 May 2008 14:30:20 -0700 (PDT) Cc: pgsql-performance@postgresql.org Message-Id: <1F7A4C3D-C8A3-44BC-A324-E9BA409BB479@gmail.com> From: Alexy Khrabrov To: Greg Smith In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: two memory-consuming postgres processes Date: Fri, 2 May 2008 14:30:17 -0700 References: <27A4D379-2553-496D-A96C-102F2A5E62C2@gmail.com> <21403.1209759217@sss.pgh.pa.us> <72E02D29-848B-467A-AE6B-401568010254@gmail.com> <481B8160.2090106@emolecules.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.033 tagged_above=0 required=5 tests=AWL=0.033 X-Spam-Level: X-Archive-Number: 200805/35 X-Sequence-Number: 30003 On May 2, 2008, at 2:23 PM, Greg Smith wrote: > On Fri, 2 May 2008, Alexy Khrabrov wrote: > >> I created several indices for the primary table, yes. > > That may be part of your problem. All of the indexes all are being > updated along with the main data in the row each time you touch a > record. There's some optimization there in 8.3 but it doesn't make > index overhead go away completely. As mentioned already, the > optimal solution to problems in this area is to adjust table > normalization as much as feasible to limit what you're updating. Was wondering about it, too -- intuitively I 'd like to say, "stop all indexing" until the column is added, then say "reindex", is it doable? Or would it take longer anyways? SInce I don't index on that new column, I'd assume my old indices would do -- do they change because of rows deletions/insertions, with the effective new rows addresses? Cheers, Alexy