Re: Query Performance with Indexes on Integer type vs. Date type.

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Query Performance with Indexes on Integer type vs. Date type.
Дата
Msg-id
17017.1303920717@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Query Performance with Indexes on Integer type vs. Date type. Dhimant Patel <drp4kri@gmail.com>
Re: Query Performance with Indexes on Integer type vs. Date type. Tom Lane <tgl@sss.pgh.pa.us>
Re: Query Performance with Indexes on Integer type vs. Date type. "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Query Performance with Indexes on Integer type vs. Date type. Phoenix Kiula <phoenix.kiula@gmail.com>
Re: Query Performance with Indexes on Integer type vs. Date type. Dhimant Patel <drp4kri@gmail.com>
Re: Query Performance with Indexes on Integer type vs. Date type. Maciek Sakrejda <msakrejda@truviso.com>
Dhimant Patel  writes:
> From my initial read on documentation I believe internally a date type is
> represented by integer type of data. This makes me wonder would it make any
> good to create additional  column of Integer type and update it as data gets
> added and use this integer column for all ordering purposes for my sqls - or
> should I not hasitate using Date type straight into my sql for ordering?

Don't overcomplicate things.  Comparison of dates is just about as fast as
comparison of integers, anyway.

			regards, tom lane
В списке pgsql-performance по дате отправления
От: Dhimant Patel
Дата:
От: Maciek Sakrejda
Дата:
FAQ