INDEXng date_trunc ... - Mailing list pgsql-sql

From Marc G. Fournier
Subject INDEXng date_trunc ...
Date
Msg-id 20011122094048.T64011-100000@earth.hub.org
Whole thread Raw
Responses Re: INDEXng date_trunc ...  (Brent Verner <brent@rcfile.org>)
List pgsql-sql
In v7.2, how does one index a function?

CREATE INDEX hourly_stats_day         ON hourly_stats      USING btree ( DATE_TRUNC('day',runtime) ) ;

Gives me:

ERROR:  parser: parse error at or near "'"


so I'm obviously doing it wrong :)

Thanks ...



pgsql-sql by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Re: [DOCS] PL/pgSQL examples NOT involving functions
Next
From: "Henshall, Stuart - WCP"
Date:
Subject: Re: ldap support