Re: Optimize expresiions.

Поиск
Список
Период
Сортировка
От han.holl@informationslogik.nl
Тема Re: Optimize expresiions.
Дата
Msg-id 200701111347.17950.han.holl@informationslogik.nl
обсуждение исходный текст
Ответ на Re: Optimize expresiions.  (Richard Huxton <dev@archonet.com>)
Ответы Re: Optimize expresiions.  (Alban Hertroys <alban@magproductions.nl>)
Список pgsql-general
On Thursday 11 January 2007 12:34, Richard Huxton wrote:

> > The query would run much faster with the filter reordered.
> > Is there a way to tell the planner/optimizer that certain functions are
> > more expensive than others, and should be postponed in lazy evaluation ?
> > Or is there a hook in the system that would allow me too look at and
> > maybe reorder expressions before they are executed ?
>
> Not really. Perhaps look into using a functional/expressional index and
> see if that does the job for you.
>
Oh well, pity. Thanks anyway.
In my case, indexes don't help.

Do you know if functionality like this has ever be considered ?
I seem to encounter many queries where the order in the where clause matters,
(but then we have a kind of weird database).

Cheers,

Han Holl

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

Предыдущее
От: Rafal Pietrak
Дата:
Сообщение: Re: TRIGGER BEFORE INSERT
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Knowing the length(convert(username using windows_1251_to_utf8))