Re: Bug or Feature? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug or Feature?
Date
Msg-id 3884.1015254493@sss.pgh.pa.us
Whole thread Raw
In response to Bug or Feature?  (Olivier PRENANT <ohp@pyrenet.fr>)
Responses Re: Bug or Feature?  (Olivier PRENANT <ohp@pyrenet.fr>)
Re: Bug or Feature?  (Olivier PRENANT <ohp@pyrenet.fr>)
List pgsql-hackers
Olivier PRENANT <ohp@pyrenet.fr> writes:
> CREATE INDEX deb ON xxxx USING btree (date(timestamp coll) date_ops);
> on 7.2 I have an error message saying that functrional indexes must but
> made ISCACHABLE.

See previous discussion of this identical problem.  The fact is that
such an index is dangerous, because it depends on the timezone setting.

You might want to make the underlying column be timestamp without time
zone.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: PocketSQL
Next
From: Oleg Bartunov
Date:
Subject: Re: single task postgresql