Re: [HACKERS] Date operations

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: [HACKERS] Date operations
Дата
Msg-id 37024B8F.DE7CE2EE@alumni.caltech.edu
обсуждение исходный текст
Ответ на Date operations  (Oliver Smith <oliver@kfs.org>)
Список pgsql-hackers
> Question 3:
> Because this query gets hit a lot, would it make sense to create an
> index
>  CREATE INDEX tbl_robot_logs_at_age_idx ON tbl_robot_logs
>   ( AGE(at) );

Nope, since "age" is calculated from "now", which is alway changing.
You can't make a useful index on a non-constant expression or
function.
                       - Tom


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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: [HACKERS] Date operations
Следующее
От: Clark Evans
Дата:
Сообщение: Bug Report - alter table does not work on temporary tables