Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 847CB9FBA00 for ; Thu, 1 Nov 2007 12:12:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 83202-02-2 for ; Thu, 1 Nov 2007 12:11:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7D3AA9FC166 for ; Thu, 1 Nov 2007 12:07:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id lA1F6v4J005505; Thu, 1 Nov 2007 11:06:57 -0400 (EDT) To: Palle Girgensohn cc: pgsql-performance@postgresql.org Subject: Re: select max(field) from table much faster with a group by clause? In-reply-to: References: <4305.1193924619@sss.pgh.pa.us> Comments: In-reply-to Palle Girgensohn message dated "Thu, 01 Nov 2007 15:36:29 +0100" Date: Thu, 01 Nov 2007 11:06:57 -0400 Message-ID: <5504.1193929617@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/16 X-Sequence-Number: 27431 Palle Girgensohn writes: > Unfortunately, altering statistics doesn't help. I see no difference when > altering the value from 10 (default) to 100, 1000 or 100000. :-( Um, you did re-ANALYZE the table after changing the setting? regards, tom lane