Re: Select max(foo) and select count(*) optimization - Mailing list pgsql-performance

From Shridhar Daithankar
Subject Re: Select max(foo) and select count(*) optimization
Date
Msg-id 3FFAE2D8.6080301@persistent.co.in
Whole thread Raw
In response to Re: Select max(foo) and select count(*) optimization  (Robert Treat <xzilla@users.sourceforge.net>)
List 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

pgsql-performance by date:

Previous
From: Robert Treat
Date:
Subject: Re: Select max(foo) and select count(*) optimization
Next
From: Greg Stark
Date:
Subject: Re: Inefficient SELECT with OFFSET and LIMIT