Index on date_trunc

Поиск
Список
Период
Сортировка
От Christophe Labouisse
Тема Index on date_trunc
Дата
Msg-id m3r9pcbe3m.fsf@gabuzo.meunet
обсуждение исходный текст
Список pgsql-sql
I'm trying to index on a part of a datetime field. I tried the
following statement :

create index ns_dt1_idx on netstats (date_trunc('day',NS_DATE) datetime_ops);

It doesn't work and I get :

ERROR:  parser: parse error at or near "'"

Any idea ?


-- 
Christophe Labouisse : Cinéma, typographie, Unix
christophe.labouisse@dial.oleane.com http://www.multimania.com/gabuzo/
Le cinéma en Lumière : http://www.lumiere.org/


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

Предыдущее
От: "Justin Long"
Дата:
Сообщение: SELECT TOP X -- part 2 -- parse error?
Следующее
От: JT Kirkpatrick
Дата:
Сообщение: backend closing channel unexpectedly