Create Index on Date portion of timestamp

Поиск
Список
Период
Сортировка
От Niederland
Тема Create Index on Date portion of timestamp
Дата
Msg-id 1160703622.606365.154150@m7g2000cwm.googlegroups.com
обсуждение исходный текст
Ответы Re: Create Index on Date portion of timestamp  (Andrew Sullivan <ajs@crankycanuck.ca>)
Re: Create Index on Date portion of timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Create Index on Date portion of timestamp  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
I am using postgresql 8.1.4.

Is there anyway to create an index equivalent to:
CREATE INDEX i1 ON t1 USING btree  (ts::Date);

So that indexes are used for queries when the field is cast to a date.


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: more anti-postgresql FUD
Следующее
От: roopa perumalraja
Дата:
Сообщение: Performance problem