Re: select max(field) from table much faster with a group by clause? - Mailing list pgsql-performance

From Palle Girgensohn
Subject Re: select max(field) from table much faster with a group by clause?
Date
Msg-id 16563C7D831BD7B32DFBDDEC@rambutan.pingpong.net
Whole thread Raw
In response to Re: select max(field) from table much faster with a group by clause?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: select max(field) from table much faster with a group by clause?
List pgsql-performance

--On torsdag, november 01, 2007 11.06.57 -0400 Tom Lane <tgl@sss.pgh.pa.us>
wrote:

> Palle Girgensohn <girgen@pingpong.net> 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?

alter table login alter userid SET statistics 1000;
vacuum analyze login;


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: select max(field) from table much faster with a group by clause?
Next
From: "Scott Marlowe"
Date:
Subject: Re: select max(field) from table much faster with a group by clause?