pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Palle Girgensohn <girgen@pingpong.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: select max(field) from table much faster with a group by clause?
Date: Thu, 01 Nov 2007 16:25:08 +0100
Message-ID: <16563C7D831BD7B32DFBDDEC@rambutan.pingpong.net> (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 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;




view thread (11+ messages)  latest in thread

Message-ID: <16563C7D831BD7B32DFBDDEC@rambutan.pingpong.net>
Permalink:  ../16563C7D831BD7B32DFBDDEC@rambutan.pingpong.net/
Also on:    postgresql.org/message-id/16563C7D831BD7B32DFBDDEC@rambutan.pingpong.net

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: girgen@pingpong.net, tgl@sss.pgh.pa.us
  Subject: Re: select max(field) from table much faster with a group by clause?
  In-Reply-To: <16563C7D831BD7B32DFBDDEC@rambutan.pingpong.net>

* 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