creating index using function

From: Matthew Engelbert <mje1975(at)yahoo(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: creating index using function
Date: 2004-11-19 20:24:52
Message-ID: 20041119202452.476.qmail@web60301.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-11-20 01:19:14 Re: creating index using function
Previous Message sarlav kumar 2004-11-19 18:38:57 another index scan problem