Re: Index scan optimization - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Index scan optimization
Date
Msg-id 5420284F.90006@vmware.com
Whole thread Raw
In response to Re: Index scan optimization  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Index scan optimization
Re: Index scan optimization
List pgsql-hackers
On 09/22/2014 04:45 PM, Tom Lane wrote:
> Heikki Linnakangas <hlinnakangas@vmware.com> writes:
>> On 09/22/2014 07:47 AM, Rajeev rastogi wrote:
>>> So my proposal is to skip the condition check on the first scan key condition for every tuple.
>
>> The same happens in a single-column case. If you have a query like
>> "SELECT * FROM tbl2 where id2 > 'a'", once you've found the start
>> position of the scan, you know that all the rows that follow match too.
>
> ... unless you're doing a backwards scan.

Sure. And you have to still check for NULLs. Have to get the details right..

- Heikki




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Index scan optimization
Next
From: Tom Lane
Date:
Subject: Re: libpq connection status and closed fd