X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A5BE6DA918 for ; Fri, 21 Oct 2005 11:20:09 -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 86040-05 for ; Fri, 21 Oct 2005 14:20:04 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 185ACDA8AF for ; Fri, 21 Oct 2005 11:20:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j9LEK8rM021210; Fri, 21 Oct 2005 10:20:08 -0400 (EDT) To: mario.splivalo@mobart.hr Cc: pgsql-sql@postgresql.org Subject: Re: Postgres 7.4.9 slow! In-reply-to: <1129893226.25351.3.camel@ekim> References: <1129893226.25351.3.camel@ekim> Comments: In-reply-to Mario Splivalo message dated "Fri, 21 Oct 2005 13:13:46 +0200" Date: Fri, 21 Oct 2005 10:20:07 -0400 Message-ID: <21209.1129904407@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/243 X-Sequence-Number: 23096 Mario Splivalo writes: > I have a query that does COUNT, LEFT JOIN and GROUP BY from two tables. > One has 85000 records, and other has 1000000 records. I've been running > the tests on 7.4.3, Your later message shows 7.4.8. Which is it? > But, now I downloaded postgres 7.4.9, and i'm running the very same > query on the very same database with all the indices and constraints > beeing the same (also SET ENABLE_SEQSCAN TO OFF), and I get around > 90-110 seconds. You sure it's the very same? The version outputs suggest that these might be two different machines; certainly two very different compilers were used. One thing I'd wonder about is whether both databases were initialized in the same locale. regards, tom lane