creating index using function - Mailing list pgsql-novice

From Matthew Engelbert
Subject creating index using function
Date
Msg-id 20041119202452.476.qmail@web60301.mail.yahoo.com
Whole thread Raw
Responses Re: creating index using function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
I would like to create an index on table ecn_sales, based on the day of year
value of a timestamp column tv_time.   However, I'm getting an error:

CREATE INDEX ecn_sales_index_day on ecn_sales (extract(DOY FROM tv_time));
ERROR:  syntax error at or near "(" at character 55

Any help would be appreciated.  Thanks.

- Matt

pgsql-novice by date:

Previous
From: sarlav kumar
Date:
Subject: another index scan problem
Next
From: Tom Lane
Date:
Subject: Re: creating index using function