Re: index on timestamp performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index on timestamp performance
Дата
Msg-id 27254.1043859604@sss.pgh.pa.us
обсуждение исходный текст
Ответ на index on timestamp performance  (Eric Cholet <cholet@logilune.com>)
Список pgsql-general
Eric Cholet <cholet@logilune.com> writes:
> Consequently would I gain performance if I changed the
> schema so that 'date' is an integer

No, you wouldn't, at least not enough to notice.  (But if you only need
a date and not a time of day, consider changing the column type to
"date".)

I suspect the issue is selectivity of the queries, but with no actual
query examples or EXPLAIN ANALYZE results to look at, that's just idle
speculation.

            regards, tom lane

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

Предыдущее
От: Lincoln Yeoh
Дата:
Сообщение: Re: Firewalls and Postgres
Следующее
От: Eric Cholet
Дата:
Сообщение: Re: index on timestamp performance