X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F123D5298C for ; Fri, 29 Jul 2005 16:02:46 -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 16292-08 for ; Fri, 29 Jul 2005 19:02:42 +0000 (GMT) Received: from mail.Mi8.com (d01gw01.mi8.com [63.240.6.47]) by svr1.postgresql.org (Postfix) with ESMTP id CC35E52941 for ; Fri, 29 Jul 2005 16:02:40 -0300 (ADT) Received: from 172.16.1.118 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Fri, 29 Jul 2005 15:02:31 -0400 X-Server-Uuid: 241911D6-425B-44B9-A073-E3FE0F8FC774 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by d01smtp03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Jul 2005 15:02:31 -0400 Received: from 67.103.45.218 ([67.103.45.218]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.104]) with Microsoft Exchange Server HTTP-DAV ; Fri, 29 Jul 2005 15:02:30 -0500 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Fri, 29 Jul 2005 12:02:30 -0700 Subject: Re: Performance problems testing with Spamassassin From: "Luke Lonergan" To: "Tom Lane" , "Matthew Schumacher" Cc: pgsql-performance@postgresql.org Message-ID: In-Reply-To: <20875.1122531559@sss.pgh.pa.us> MIME-Version: 1.0 X-OriginalArrivalTime: 29 Jul 2005 19:02:31.0074 (UTC) FILETIME=[12180820:01C59470] X-WSS-ID: 6EF4A2CD2B48673350-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.576 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_NUMERIC_HELO X-Spam-Level: * X-Archive-Number: 200507/482 X-Sequence-Number: 13723 Tom, On 7/27/05 11:19 PM, "Tom Lane" wrote: > Matthew Schumacher writes: >> After playing with various indexes and what not I simply am unable to >> make this procedure perform any better. Perhaps someone on the list can >> spot the bottleneck and reveal why this procedure isn't performing that >> well or ways to make it better. > > There's not anything obviously wrong with that procedure --- all of the > updates are on primary keys, so one would expect reasonably efficient > query plans to get chosen. Perhaps it'd be worth the trouble to build > the server with profiling enabled and get a gprof trace to see where the > time is going. Yes - that would be excellent. We've used oprofile recently at Mark Wong's suggestion, which doesn't require rebuilding the source. - Luke