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

Re: Bug? 8.0 does not use partial index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Palle Girgensohn <girgen(at)pingpong(dot)net>
Cc: John Hansen <john(at)geeknet(dot)com(dot)au>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Bug? 8.0 does not use partial index
Date: 2005-01-14 04:01:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Palle Girgensohn <girgen(at)pingpong(dot)net> writes:
>> No surprise.  vacuum analyze produces an exact total row count, whereas
>> analyze can only produce an approximate total row count (since it only
>> samples the table rather than groveling over every row).  Sometimes the
>> approximate count will be far enough off to affect the estimates.

> Reasonable. Thanks for clarifying that. In the normal case, vacuum analyze 
> is better, I guess?

If you intend to do both steps, the combined command is definitely
better than issuing them separately.  I wouldn't say that you need to
do the combined command in situations where you'd otherwise do just

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Kris JurkaDate: 2005-01-14 04:07:55
Subject: Re: Top-k optimizations?
Previous:From: Mark KirkwoodDate: 2005-01-14 04:00:10
Subject: Re: FATAL: catalog is missing 1 attribute(s) for relid

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