Re: Select max(foo) and select count(*) optimization

From: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>
To:
Cc: Postgresql Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Select max(foo) and select count(*) optimization
Date: 2004-01-06 16:31:20
Message-ID: 3FFAE2D8.6080301@persistent.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Robert Treat wrote:
> On Tue, 2004-01-06 at 07:20, Shridhar Daithankar wrote:

>>The numbers from pg_class are estimates updated by vacuum /analyze. Of course
>>you need to run vacuum frequent enough for that statistics to be updated all
>>the time or run autovacuum daemon..
>>Ran into same problem on my machine till I remembered about vacuum..:-)
> Actually you only need to run analyze to update the statistics.

Old habits die hard..:-)

shridhar

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Stark 2004-01-06 18:12:17 Re: Inefficient SELECT with OFFSET and LIMIT
Previous Message Robert Treat 2004-01-06 16:03:23 Re: Select max(foo) and select count(*) optimization