Bug #730: cannot create functional index

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #730: cannot create functional index
Date: 2002-08-04 10:49:49
Message-ID: 20020804104949.21968475A0A@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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 ()?

Sample Code

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Stephan Szabo 2002-08-04 18:17:58 Re: Bug #730: cannot create functional index
Previous Message Joe Conway 2002-08-04 07:45:54 Re: Bug #728: Interactions between bytea and character encoding