Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 57F7B9FA4AA for ; Fri, 26 Oct 2007 23:04:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 23442-04 for ; Fri, 26 Oct 2007 23:04:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [87.127.95.196]) by postgresql.org (Postfix) with ESMTP id DD44F9FA482 for ; Fri, 26 Oct 2007 23:04:52 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1Ilb2d-0004s6-Rr; Sat, 27 Oct 2007 03:04:47 +0100 To: "Joshua D. Drake" Cc: "Campbell\, Lance" , Subject: Re: Suggestions on an update query In-Reply-To: <20071026141547.70c9c1e0@scratch> (Joshua D. Drake's message of "Fri\, 26 Oct 2007 14\:15\:47 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 2965) References: <20071026141547.70c9c1e0@scratch> From: Gregory Stark Organization: EnterpriseDB Date: Sat, 27 Oct 2007 03:04:47 +0100 Message-ID: <87odel1feo.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/314 X-Sequence-Number: 27336 "Joshua D. Drake" writes: > On Fri, 26 Oct 2007 15:31:44 -0500 > "Campbell, Lance" wrote: > >> I forgot to include an additional parameter I am using in >> Postgresql.conf: >> > > O.k. first, just to get it out of the way (and then I will try and > help). Please do not top post, it makes replying contextually very > difficult. > >> PostgreSql version 8.2.4 >> >> Memory = 8 Gig >> >> CPUs 1 dual core Zeon running at 3.0 >> > > O.k. first you might be grinding through your 20 checkpoint segments > but in reality what I think is happening is you are doing foreign key > checks against all of it and slowing things down. If you're going to berate someone about top-posting perhaps you should attach your own commentary to relevant bits of context :P But the original post didn't include any foreign key constraints. I suspect you've guessed it right though. In fact I suspect what's happening is he doesn't have an index on the referencing column so the foreign key checks are doing sequential scans of. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com