Re: Index usage - Mailing list pgsql-general

From Dennis Björklund
Subject Re: Index usage
Date
Msg-id Pine.LNX.4.44.0308260833530.31606-100000@zigo.dhs.org
Whole thread Raw
In response to Index usage  (Pedro Alves <pmalves@think.pt>)
Responses Re: Index usage  (Pedro Alves <pmalves@think.pt>)
List pgsql-general
On Mon, 25 Aug 2003, Pedro Alves wrote:

>     The querys below are exactly the same but refer to different months.
> One case uses indexes, the other doesn't.
>
>     Is there anything I can do? Increasing index mem size?

Run "vacuum analyze". The planner seems to think that one of the queries
returns 313 rows while the other returns 2388 rows.

To me that looks like the statistics need to be updated using vacuum
analyze.

Also, explain analyze gives a little more information and is better to
run then just explain.

--
/Dennis


pgsql-general by date:

Previous
From: David Lutz
Date:
Subject: Re: convert database to unicode
Next
From: Ron Johnson
Date:
Subject: Linux ready for high-volume databases?