Re: Optimizer Not using the Right plan - Mailing list pgsql-performance

From Tom Lane
Subject Re: Optimizer Not using the Right plan
Date
Msg-id 29382.1196785978@sss.pgh.pa.us
Whole thread Raw
In response to Optimizer Not using the Right plan  (Pallav Kalva <pkalva@livedatagroup.com>)
Responses Re: Optimizer Not using the Right plan
List pgsql-performance
Pallav Kalva <pkalva@livedatagroup.com> writes:
>    why does it have different plans for different values

Because the values occur different numbers of times (or so it thinks
anyway).  If the rowcount estimates are far from reality, perhaps
increasing the statistics target would help.  However, since you
only showed EXPLAIN and not EXPLAIN ANALYZE output, no one can
really tell whether the optimizer did anything wrong here.

            regards, tom lane

pgsql-performance by date:

Previous
From: Mark Mielke
Date:
Subject: Re: RAID arrays and performance
Next
From: Matthew
Date:
Subject: Re: RAID arrays and performance