Re: please help on query

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: please help on query
Дата
Msg-id 1026420664.18193.21.camel@taru.tm.ee
обсуждение исходный текст
Ответ на please help on query  ("Luis Alberto Amigo Navarro" <lamigo@atc.unican.es>)
Список pgsql-hackers
On Thu, 2002-07-11 at 17:22, Luis Alberto Amigo Navarro wrote:
> I can't improve performance on this query:

You may also want to rewrite

lineitem.shipdate<(('1994-01-01')::DATE+('1 year')::INTERVAL)::DATE

into

lineitem.shipdate<(('1995-01-01')::DATE

if you can, as probably the optimiser will not recognize it else as a
constant and won't use index on lineitem.shipdate.

----------------
Hannu




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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: please help on query
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: please help on query