Functional index performance question

Поиск
Список
Период
Сортировка
От Mike Mascari
Тема Functional index performance question
Дата
Msg-id 3F7963C9.6040605@mascari.com
обсуждение исходный текст
Ответы Re: Functional index performance question  (Arguile <arguile@lucentstudios.com>)
Список pgsql-general
Let's assume I have a table like so:

CREATE TABLE employees (
 employeeid text not null,
 name text not null
);

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?

Mike Mascari
mascarm@mascari.com


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

Предыдущее
От: Bjørn T Johansen
Дата:
Сообщение: Re: Problem with lock?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Problem with lock?