X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 6BC1E9DC9CB for ; Fri, 10 Mar 2006 05:11:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18266-06 for ; Fri, 10 Mar 2006 05:11:07 -0400 (AST) X-Greylist: delayed 01:59:14.968539 by SQLgrey- Received: from hotmail.com (bay107-dav4.bay107.hotmail.com [64.4.51.76]) by postgresql.org (Postfix) with ESMTP id 0B5FE9DCC78 for ; Fri, 10 Mar 2006 05:11:03 -0400 (AST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 10 Mar 2006 01:11:05 -0800 Message-ID: Received: from 84.193.85.191 by BAY107-DAV4.phx.gbl with DAV; Fri, 10 Mar 2006 09:11:01 +0000 X-Originating-IP: [84.193.85.191] X-Originating-Email: [nbforyou@hotmail.com] X-Sender: nbforyou@hotmail.com From: "NbForYou" To: "Michael Fuhr" Cc: References: <20060310085943.GA8913@winnie.fuhr.org> Subject: Re: Process Time X200 Date: Fri, 10 Mar 2006 10:11:00 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-OriginalArrivalTime: 10 Mar 2006 09:11:05.0496 (UTC) FILETIME=[8F928980:01C64422] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.679 required=5 tests=[AWL=-0.239, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, MSGID_FROM_MTA_HEADER=0] X-Spam-Score: 1.679 X-Spam-Level: * X-Archive-Number: 200603/108 X-Sequence-Number: 17545 Hey Michael, you sure know your stuff! Versions: PostgreSQL 7.3.9-RH running on the webhost. PostgreSQL 8.0.3 running on my homeserver. So the only solution is to ask my webhost to upgrade its postgresql? The question is will he do that? After all a license fee is required for commercial use. And running a webhosting service is a commercial use. thanks for replying and going through the effort of creating the database and populating it. Nick ----- Original Message ----- From: "Michael Fuhr" To: "NbForYou" Cc: Sent: Friday, March 10, 2006 9:59 AM Subject: Re: [PERFORM] Process Time X200 > On Fri, Mar 10, 2006 at 08:11:44AM +0100, NbForYou wrote: >> As you can see the query isn't useful anymore because of the >> processtime. Please Also notice that both systems use a different >> query plan. >> Also on the webhost we have a loop of 162409 (403 rows * 403 rows). >> Both systems also use a different postgresql version. But I cannot >> believe that the performance difference between 1 version could be >> this big regarding self outer join queries! > > What versions are both servers? I'd guess that the webhost is using > 7.3 or earlier and you're using 7.4 or later. I created a table > like yours, populated it with test data, and ran your query on > several versions of PostgreSQL. I saw the same horrible plan on > 7.3 and the same good plan on later versions. The 7.4 Release Notes > do mention improvements in query planning; apparently one of those > improvements is making the difference. > > -- > Michael Fuhr > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >