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 87DE747601F for ; Tue, 11 Mar 2003 13:36:37 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 6FD6343A611; Tue, 11 Mar 2003 13:36:37 -0500 (EST) From: "Gaetano Mendola" X-Newsgroups: comp.databases.postgresql.admin Subject: date is not immutable ? Date: Tue, 11 Mar 2003 19:37:04 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 16 Message-ID: Reply-To: "Gaetano Mendola" X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: pgsql-admin@postgresql.org X-Archive-Number: 200303/133 X-Sequence-Number: 7774 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 ? Regards Gaetano