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 CF81C3A4987 for ; Thu, 4 Nov 2004 23:00:05 +0000 (GMT) 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 58428-06 for ; Thu, 4 Nov 2004 22:59:56 +0000 (GMT) Received: from tht.net (vista.tht.net [216.126.88.2]) by svr1.postgresql.org (Postfix) with ESMTP id 64C113A4654 for ; Thu, 4 Nov 2004 22:59:55 +0000 (GMT) Received: from [134.22.69.212] (dyn-69-212.tor.dsl.tht.net [134.22.69.212]) by tht.net (Postfix) with ESMTP id 7659D76D26; Thu, 4 Nov 2004 17:59:58 -0500 (EST) Subject: Re: Better Hardware, worst Results From: Rod Taylor To: al_nunes@atua.com.br Cc: Postgresql Performance In-Reply-To: <1099608123.418ab03ba292f@webmail.atua.com.br> References: <1099602361.7775.15.camel@localhost> <1099602998.1647.711.camel@home> <1099608123.418ab03ba292f@webmail.atua.com.br> Content-Type: text/plain Message-Id: <1099609109.1647.727.camel@home> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 04 Nov 2004 17:58:29 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/72 X-Sequence-Number: 9026 On Thu, 2004-11-04 at 17:42, al_nunes@atua.com.br wrote: > Citando Rod Taylor : > > Please send an explain analyze from both. > I'm sendin three explains. In the first the Dell machine didn't use existing > indexes, so I turn enable_seqscan off (this is the second explain). The total > cost decreased, but the total time not. The third explain refers to the cheaper > (and faster) machine. The last thing is the query itself. All 3 plans have crappy estimates. Run ANALYZE in production, then send another explain analyze (as an attachment please, to avoid linewrap).