Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group