Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group