Re: Index scan vs. Seq scan on timestamps

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Index scan vs. Seq scan on timestamps
Дата
Msg-id 20041206183201.B61668@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Index scan vs. Seq scan on timestamps  (Per Jensen <per@net-es.dk>)
Ответы Re: Index scan vs. Seq scan on timestamps
Список pgsql-general
On Mon, 6 Dec 2004, Per Jensen wrote:

> select count(*)
> from accesslog
> where time  between (timeofday()::timestamp - INTERVAL '30 d') and
> timeofday()::timestamp;

Besides the type issue, timeofday() is volatile and thus is not allowed to
be turned into a constant in order to do an index scan because it's
allowed to return different values for every row of the input.


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: hooks for supporting third party blobs?
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Index scan vs. Seq scan on timestamps