X-Original-To: pgsql-admin@postgresql.org Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 56C68476022 for ; Tue, 11 Mar 2003 14:14:24 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 3743343A611; Tue, 11 Mar 2003 14:14:24 -0500 (EST) X-Newsgroups: comp.databases.postgresql.admin From: xach@xach.com (Zachary Beane) Subject: Re: date is not immutable ? References: Reply-To: xach@xach.com Message-Id: User-Agent: slrn/0.9.7.1 (Linux) Date: Tue, 11 Mar 2003 13:14:19 -0600 Lines: 15 X-Complaints-To: abuse@gwi.net X-DMCA-Complaints-To: abuse@gwi.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 To: pgsql-admin@postgresql.org X-Archive-Number: 200303/150 X-Sequence-Number: 7790 In article , 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