Re: type cast in index

From: "Chris Spotts" <rfusca(at)gmail(dot)com>
To: "'Linos'" <info(at)linos(dot)es>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: type cast in index
Date: 2009-06-09 17:15:04
Message-ID: 385F328C7E2545DB97B940255BED6373@tcore.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2009-06-09 17:58:57 Re: type cast in index
Previous Message Octavio Alvarez 2009-06-09 16:25:14 Re: limit table to one row