From: Scott Marlowe <scott.marlowe@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Palle Girgensohn <girgen@pingpong.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: select max(field) from table much faster with a group by clause?
Date: Thu, 1 Nov 2007 10:28:53 -0500
Message-ID: <dcc563d10711010828t6802a8av9235cc8c70568089@mail.gmail.com> (raw)
In-Reply-To: <5504.1193929617@sss.pgh.pa.us>
References: <D26563C7B9CCEB0A338FF08E@rambutan.pingpong.net>
<4305.1193924619@sss.pgh.pa.us>
<DFCABF1E9EE0F7A9D44CA50A@rambutan.pingpong.net>
<5504.1193929617@sss.pgh.pa.us>
On 11/1/07, 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?
And he changed it with
ALTER TABLE name ALTER [ COLUMN ] column SET STORAGE { PLAIN |
EXTERNAL | EXTENDED | MAIN }
right?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: scott.marlowe@gmail.com, tgl@sss.pgh.pa.us, girgen@pingpong.net
Subject: Re: select max(field) from table much faster with a group by clause?
In-Reply-To: <dcc563d10711010828t6802a8av9235cc8c70568089@mail.gmail.com>
References: <D26563C7B9CCEB0A338FF08E@rambutan.pingpong.net> <4305.1193924619@sss.pgh.pa.us> <DFCABF1E9EE0F7A9D44CA50A@rambutan.pingpong.net> <5504.1193929617@sss.pgh.pa.us> <dcc563d10711010828t6802a8av9235cc8c70568089@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox