Re: date is not immutable ?

From: xach(at)xach(dot)com (Zachary Beane)
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: date is not immutable ?
Date: 2003-03-11 19:14:19
Message-ID: slrnb6sdcb.25l.xach@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

In article <b4labj$15lq$1(at)news(dot)hub(dot)org>, Gaetano Mendola wrote:
> Hi all,
> I'm trying to create an index on a timestamptz field just extracting the
> date:
>
> # create index idx_user_logs_login_time_date on user_logs (
> date(login_time) );
> ERROR: DefineIndex: index function must be marked IMMUTABLE
>
>
> why date is not marked immutable ?

It is influenced by the local time zone.

Zach

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message girlyDBA 2003-03-11 19:30:16 keys allowed in child which do not exist in parent table when restoring using pg_restore
Previous Message Byron A Jeff 2003-03-11 18:41:31 Re: Largest filesize under Linux