From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | <kezal(at)mail(dot)ru>, <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: Bug #730: cannot create functional index |
Date: | 2002-08-04 18:17:58 |
Message-ID: | 20020804111621.Y64037-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sun, 4 Aug 2002 pgsql-bugs(at)postgresql(dot)org wrote:
> Vadim Grepan (kezal(at)mail(dot)ru) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> cannot create functional index
>
> Long Description
> I've tried to create functional index like
> that:
> === cut ===
> db=> CREATE INDEX NDX_FNC_TBL_TRAFBYTES__DATE ON tbl_trafbytes (date (date_trunc ('day', trafbytes_date)));
> ERROR: parser: parse error at or near "("
> === cut ===
>
> Column trafbytes_date define as
> === cut ===
> trafbytes_date | timestamp without time zone | not null
> === cut ===
>
> Does it means that PostgreSQL funcional indexes support only simplest fucntions like lower ()?
Functional indexes must take as arguments one or more columns.
You'll need a function that wraps what you're attempting to do
and make the index (and where clauses) with that.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-08-04 19:27:32 | Re: Bug #730: cannot create functional index |
Previous Message | pgsql-bugs | 2002-08-04 10:49:49 | Bug #730: cannot create functional index |