Re: Functional index performance question

Поиск
Список
Период
Сортировка
От Arguile
Тема Re: Functional index performance question
Дата
Msg-id 1064932226.26652.24.camel@broadswd
обсуждение исходный текст
Ответ на Re: Functional index performance question  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
On Tue, 2003-09-30 at 09:54, Mike Mascari wrote:
> Arguile wrote:
>
> > On Tue, 2003-09-30 at 07:06, Mike Mascari wrote:
> >
> >>CREATE INDEX i_employees ON employees(lower(name));
> >>
> >>Let's also assume that the lower() function is computationally
> >>expensive. Now if I have a query like:
> >>
> >>SELECT lower(name)
> >>FROM employees
> >>WHERE lower(name) = 'mike'
> >>
> >>will PostgreSQL re-evaluate lower(name)? Is it necessary?
> >
> > No, it won't re-evaluate.
>
> I think it will.

You're correct, I misunderstood to which clause you were referring to: I
thought you were wondering about the lower(name) in the where clause.
Sorry for the confusion.


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

Предыдущее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: pg_hba.conf
Следующее
От: Network Administrator
Дата:
Сообщение: Re: RE : mod_auth_pgsql & encryption