Re: overlaps performance

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: Grzegorz Jaśkiewicz <gj(at)pointblue(dot)com(dot)pl>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: overlaps performance
Date: 2008-07-21 13:46:55
Message-ID: 877ibf73jk.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Grzegorz Jaśkiewicz <gj(at)pointblue(dot)com(dot)pl> writes:

> So my question would be, why isn't postgresql using indexes for OVERLAPS,
> and why optimizer doesn't substitute it with something like:
>
> (c <= a AND d > a) OR ( c >= a AND c < b)

How would you use an index for that?

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL training!

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2008-07-21 14:04:50 WITH RECUSIVE patches 0721
Previous Message Stephen Frost 2008-07-21 11:56:02 Re: pg_dump additional options for performance