Re: Sub-optimal plan chosen - Mailing list pgsql-performance

From Tom Lane
Subject Re: Sub-optimal plan chosen
Date
Msg-id 24520.1252597391@sss.pgh.pa.us
Whole thread Raw
In response to Sub-optimal plan chosen  (bricklen <bricklen@gmail.com>)
Responses Re: Sub-optimal plan chosen  (bricklen <bricklen@gmail.com>)
List pgsql-performance
bricklen <bricklen@gmail.com> writes:
> Is there any other data I can provide to shed some light on this?

The table and index definitions?

The straight indexscan would probably win if the index column order
were ofid, date instead of date, ofid.  I can't tell if you have
any other queries for which the existing column order is preferable,
though.

            regards, tom lane

pgsql-performance by date:

Previous
From: tv@fuzzy.cz
Date:
Subject: Re: Sub-optimal plan chosen
Next
From: bricklen
Date:
Subject: Re: Sub-optimal plan chosen