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 AC3D4DA878 for ; Fri, 21 Oct 2005 11:32:29 -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 30670-07 for ; Fri, 21 Oct 2005 14:32:23 +0000 (GMT) Received: from pjetlic.mobart.hr (pjetlic.mobart.hr [80.80.51.10]) by svr1.postgresql.org (Postfix) with ESMTP id D6FC1D7FFF for ; Fri, 21 Oct 2005 11:32:25 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by pjetlic.mobart.hr (Postfix) with ESMTP id 685FE17A5C; Fri, 21 Oct 2005 16:32:30 +0200 (CEST) Received: from pjetlic.mobart.hr ([127.0.0.1]) by localhost (pjetlic [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28173-05-5; Fri, 21 Oct 2005 16:32:30 +0200 (CEST) Received: from mike.mobart.hr (mike.mobart.hr [192.168.10.94]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pjetlic.mobart.hr (Postfix) with ESMTP id 4D88417A5B; Fri, 21 Oct 2005 16:32:30 +0200 (CEST) Subject: Re: Postgres 7.4.9 slow! From: Mario Splivalo Reply-To: mario.splivalo@mobart.hr To: Tom Lane Cc: pgsql-sql@postgresql.org In-Reply-To: <21209.1129904407@sss.pgh.pa.us> References: <1129893226.25351.3.camel@ekim> <21209.1129904407@sss.pgh.pa.us> Content-Type: text/plain Organization: Mob-Art Date: Fri, 21 Oct 2005 16:32:30 +0200 Message-Id: <1129905150.7740.5.camel@ekim> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by OpenSource AV+AS Mail Server X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 required=5 tests=[AWL=0.005] X-Spam-Level: X-Archive-Number: 200510/244 X-Sequence-Number: 23097 On Fri, 2005-10-21 at 10:20 -0400, Tom Lane wrote: > 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. Yes, I realized that the new Ubuntu distribution hac gcc4 by default. I'll compile again both 7.4.8 and 7.4.9 and my home PC, and see what happens then. My mention of 7.4.3 is a typo. It's 7.4.8 and 7.4.9. Mike -- Mario Splivalo Mob-Art mario.splivalo@mobart.hr "I can do it quick, I can do it cheap, I can do it well. Pick any two."