pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Select max(foo) and select count(*) optimization
Date: Tue, 06 Jan 2004 22:01:20 +0530
Message-ID: <3FFAE2D8.6080301@persistent.co.in> (raw)
In-Reply-To: <1073405003.20751.2.camel@camel>
References: <BC1F1F20.71370%siracusa@mindspring.com>
	<200401061212.21344.shridhar_daithankar@persistent.co.in>
	<200401060718.08444.darcy@druid.net>
	<200401061750.09530.shridhar_daithankar@persistent.co.in>
	<1073405003.20751.2.camel@camel>

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



view thread (19+ messages)  latest in thread

Message-ID: <3FFAE2D8.6080301@persistent.co.in>
Permalink:  ../3FFAE2D8.6080301@persistent.co.in/
Also on:    postgresql.org/message-id/3FFAE2D8.6080301@persistent.co.in

 · 

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: shridhar_daithankar@persistent.co.in
  Subject: Re: Select max(foo) and select count(*) optimization
  In-Reply-To: <3FFAE2D8.6080301@persistent.co.in>

* 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