Re: type cast in index - Mailing list pgsql-general

From Chris Spotts
Subject Re: type cast in index
Date
Msg-id 385F328C7E2545DB97B940255BED6373@tcore.com
Whole thread Raw
In response to type cast in index  (Linos <info@linos.es>)
Responses Re: type cast in index
Re: type cast in index
List pgsql-general
>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

        If your time_stamp_creacion is a timestamp with time zone I
believe that the cast is not immutable.


pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: Can postgresql store its data on raw device now?
Next
From: Alvaro Herrera
Date:
Subject: Re: type cast in index