pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: xach@xach.com
To: pgsql-admin@postgresql.org
Subject: Re: date is not immutable ?
Date: Tue, 11 Mar 2003 13:14:19 -0600
Message-ID: <slrnb6sdcb.25l.xach@localhost.localdomain> (raw)
References: <b4labj$15lq$1@news.hub.org>

In article <b4labj$15lq$1@news.hub.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



view thread (4+ messages)  latest in thread

Message-ID: <slrnb6sdcb.25l.xach@localhost.localdomain>
Permalink:  ../slrnb6sdcb.25l.xach@localhost.localdomain/
Also on:    postgresql.org/message-id/slrnb6sdcb.25l.xach@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: xach@xach.com
  Subject: Re: date is not immutable ?
  In-Reply-To: <slrnb6sdcb.25l.xach@localhost.localdomain>
  References: <b4labj$15lq$1@news.hub.org> <slrnb6sdcb.25l.xach@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox