From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Lec <englim(at)pc(dot)jaring(dot)my> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: ERROR: DefineIndex: index function must be marked |
Date: | 2002-03-11 17:19:59 |
Message-ID: | 20020311091745.E45259-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, 11 Mar 2002, Lec wrote:
> With version 7.2, when I tried to create an index using the built-in
> funtion date(), I got an error:
>
> ai=> create index stl_date on stl(date(stl_trxdate) );
> ERROR: DefineIndex: index function must be marked iscachable
>
> What does this mean? I could do so under version 7.1.2
See recent discussions on the mailing list. I'm guessing that
stl_trxdate is a timestamp? If so, date(timestamp) is not
cachable right now because the results depend on timezone and
so said index could get corrupted if you're doing things
from multiple timezones. You could make the column
timestamp without timezone which I believe has a cachable
date().
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Mascari | 2002-03-11 17:31:45 | Re: big problem |
Previous Message | Stephan Szabo | 2002-03-11 17:16:56 | Re: FROM Clause subquery |