Re: Timestamp-based indexing

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Timestamp-based indexing
Дата
Msg-id 20040726085324.E68237@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Timestamp-based indexing  ("Harmon S. Nine" <hnine@netarx.com>)
Ответы Re: Timestamp-based indexing
Список pgsql-performance
On Mon, 26 Jul 2004, Harmon S. Nine wrote:

> However, we can't get the planner to do an timestamp-based index scan.
>
> Anyone know what to do?

I'd wonder if the type conversion is causing you problems.
CURRENT_TIMESTAMP - INTERVAL '10 minutes' is a timestamp with time zone
while the column is timestamp without time zone.  Casting
CURRENT_TIMESTAMP to timestamp without time zone seemed to make it able to
choose an index scan on 7.4.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Timestamp-based indexing
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Insert are going slower ...