X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9589011F6228 for ; Thu, 27 Apr 2006 13:13:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 66201-04 for ; Thu, 27 Apr 2006 13:13:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id ADD9E11F60E3 for ; Thu, 27 Apr 2006 13:13:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k3RGDQ1m011870; Thu, 27 Apr 2006 12:13:26 -0400 (EDT) To: "andremachado" cc: pgsql-performance@postgresql.org Subject: Re: Firebird 1.5.3 X Postgresql 8.1.3 (linux Firebird 1.5.3 X Postgresql 8.1.3 (linux and and windows)] In-reply-to: <20060427122235.M42721@techforce.com.br> References: <20060427122235.M42721@techforce.com.br> Comments: In-reply-to "andremachado" message dated "Thu, 27 Apr 2006 10:32:31 -0200" Date: Thu, 27 Apr 2006 12:13:26 -0400 Message-ID: <11869.1146154406@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/649 X-Sequence-Number: 18733 "andremachado" writes: > Firebird has something similiar to EXPLAIN. Please look below. Hm, maybe I just don't know how to read their output, but it's not obvious to me where they are doing the min/max aggregates. > Is there something really wrong with the postgresql configuration (at my > previous msg) that is causing this poor performance at these 2 queries? I don't think it's a configuration issue, it's a quality-of-plan issue. Could you put together a self-contained test case for this problem? I don't have the time or interest to try to reverse-engineer tables and test data for these queries --- but I would be interested in finding out where the time is going, if I could run the queries. regards, tom lane