Re: type cast in index

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: type cast in index
Дата
Msg-id
20090609175857.GH5938@alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
type cast in index Linos <info@linos.es>
Re: type cast in index Alvaro Herrera <alvherre@commandprompt.com>
Re: type cast in index "Chris Spotts" <rfusca@gmail.com>
Re: type cast in index Tom Lane <tgl@sss.pgh.pa.us>
Re: type cast in index Linos <info@linos.es>
Linos escribió:

> CREATE INDEX fecha_creacion_ordtrab ON orden_trabajo_cabecera USING btree 
> ((time_stamp_creacion::date));
>
> but in my postgresql 8.3 version i get this error:
>
> ERROR:  functions in index expression must be marked IMMUTABLE

You can make it work by adding an AT TIME ZONE 'UTC' specification,
which will cause it to be turned into a plain timestamp (without tz).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-general по дате отправления
От: Chris Spotts
Дата:
Сообщение: Re: type cast in index
От: Tom Lane
Дата:
Сообщение: Re: type cast in index
FAQ