I am asking here, because I know there is bunch of people here that know
the topic very well.
I need to use few 'overlaps' for timedate in my query. And I guess it is
quite inefficient there. So my question would be, why isn't postgresql
using indexes for OVERLAPS, and why optimizer doesn't substitute it with
(c <= a AND d > a) OR ( c >= a AND c < b)
(a,b) overlaps (c,d)
any corner cases, or particular reasons ?
(source of example)
pgsql-hackers by date
|Next:||From: Markus Wanner||Date: 2008-07-21 11:33:03|
|Subject: Re: [COMMITTERS] pgsql: Adjust things so that the query_string of
a cached plan and the|
|Previous:||From: Heikki Linnakangas||Date: 2008-07-21 08:53:08|
|Subject: Default of max_stack_depth and getrlimit|