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 27FAF52E73 for ; Wed, 10 Aug 2005 21:23:37 -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 35937-08 for ; Thu, 11 Aug 2005 00:23:32 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id 6B2CF52E6F for ; Wed, 10 Aug 2005 21:23:32 -0300 (ADT) Received: from [192.168.1.105] (clbb-248.saw.net [64.146.135.248]) (authenticated bits=0) by hosting.commandprompt.com (8.13.4/8.13.4) with ESMTP id j7B0MRef029344; Wed, 10 Aug 2005 17:22:27 -0700 Message-ID: <42FA9A8B.1040400@commandprompt.com> Date: Wed, 10 Aug 2005 17:23:39 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Harris Cc: pgsql-performance@postgresql.org Subject: Re: Speedier count(*) References: <3E43C7D5-9DB8-4132-BF4F-607B000866E1@drivefaster.net> In-Reply-To: <3E43C7D5-9DB8-4132-BF4F-607B000866E1@drivefaster.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (hosting.commandprompt.com [192.168.1.101]); Wed, 10 Aug 2005 17:22:28 -0700 (PDT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=[AWL=0.024] X-Spam-Level: X-Archive-Number: 200508/102 X-Sequence-Number: 13849 > Also, I am using "select ... group by ... order by .. limit 1" to get > the min/max since I have already been bit by the issue of min() max() > being slower. This specific instance is fixed in 8.1 Sincerely, Joshua D. Drake > > > -Dan > > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match