Re: slow index lookup - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: slow index lookup
Date
Msg-id 4C21F9280200002500032904@gw.wicourts.gov
Whole thread Raw
In response to Re: slow index lookup  (Anj Adu <fotographs@gmail.com>)
List pgsql-performance
Anj Adu <fotographs@gmail.com> wrote:

> The combination index works great. Would adding the combination
> index guarantee that the optimizer will choose that index for
> these kind of queries involving the columns in the combination. I
> verified a couple of times and it picked the right index. Just
> wanted to make sure it does that consistently.

It's cost based -- as long as it thinks that approach will be
faster, it will use it.

-Kevin

pgsql-performance by date:

Previous
From: Anj Adu
Date:
Subject: Re: slow index lookup
Next
From: Rajesh Kumar Mallah
Date:
Subject: Re: cpu bound postgresql setup. Firstly many thanks for responding. I am concerned because the load averages have increased and users complaining of slowness. I do not change settings frequenly. I was curious if there is any half dead component in th