From: | Linos <info(at)linos(dot)es> |
---|---|
To: | |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: type cast in index |
Date: | 2009-06-09 18:01:00 |
Message-ID: | 4A2EA35C.1070100@linos.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Yes it seems you have reason Chris, i have been using 'timestamp with time zone'
without need it because i have read in the mailing list was good practice
because maybe one day you use the database in more timezones but i ever use the
app in the same timezone so i will convert the column datatype where i need an
index in a cast to date from a timestamp. Thanks.
Chris Spotts 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
>
> If your time_stamp_creacion is a timestamp with time zone I
> believe that the cast is not immutable.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tory M Blue | 2009-06-09 18:17:42 | Postgres Pg_connect PHP |
Previous Message | Tom Lane | 2009-06-09 17:59:11 | Re: type cast in index |