Re: Proposed Query Planner TODO items

Поиск
Список
Период
Сортировка
От markw@osdl.org
Тема Re: Proposed Query Planner TODO items
Дата
Msg-id 200402161718.i1GHIpE05481@mail.osdl.org
обсуждение исходный текст
Ответ на Re: Proposed Query Planner TODO items  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Proposed Query Planner TODO items  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 15 Feb, Tom Lane wrote:
> I wrote:
>> I see what is going on to make Q4 slow, too.  It's this:
>>   where o_orderdate >= date '1995-04-01' and o_orderdate < date '1995-04-01' + interval '3 month'
>> ...
>> As of CVS tip the issue could be eliminated by introducing
>> cross-data-type comparison operators between types date and timestamp
>> without time zone, and then making these be members of the date index
>> opclass.  I'm strongly tempted to do so ...
> 
> I have now done this, so if you care to re-sync with CVS tip you should
> find that the queries using this sort of date constraint go faster.
> (You do have indexes on all the date columns, no?)

I ran a test with the CAST you recommended for Q4 over the weekend:http://developer.osdl.org/markw/dbt3-pgsql/68/

But it didn't seem to have much of an affect on Q4, compared to run
#66.  I'll still give the CVS tip a try.

Mark


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: No Timeout in SELECT..FOR UPDATE
Следующее
От: Rod Taylor
Дата:
Сообщение: Slow DROP INDEX