Re: Bug? 8.0 does not use partial index - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug? 8.0 does not use partial index
Date
Msg-id 18183.1105663497@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bug? 8.0 does not use partial index  (Palle Girgensohn <girgen@pingpong.net>)
Responses Re: Bug? 8.0 does not use partial index  (Palle Girgensohn <girgen@pingpong.net>)
List pgsql-hackers
Palle Girgensohn <girgen@pingpong.net> writes:
> Trying all this out, I realize that on 7.4.5, I can sometimes get different 
> results after `vacuum analyze' vs. a plain `analyze' (again, not exactly 
> the same data, and I cannot reproduce this on the other machine with the 
> data I sent you). It does not really relate to the question above, but 
> perhaps you can explain how come I get different results?

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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Palle Girgensohn
Date:
Subject: Re: Bug? 8.0 does not use partial index
Next
From: Palle Girgensohn
Date:
Subject: Re: Bug? 8.0 does not use partial index