Index on a Function

From: "Nathan Barnett" <natebiz(at)cfl(dot)rr(dot)com>
To: "PostgreSQL List" <pgsql-general(at)postgresql(dot)org>
Subject: Index on a Function
Date: 2001-01-03 20:05:05
Message-ID: MHEJIGLIMNDMHOMFOJDEMEFLCCAA.natebiz@cfl.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am trying to create an index on the result of a date_trunc('day',
columna). When I try to create the index, I get a parse error near the '
before day. I tried escaping the single quote by preceding it with a
backslash, but this gives an error saying that date_trunc(timestamp) doesn't
exist. Is there a work around to get this index created? I'm using version
7.0.3 on FreeBSD 4.2-RELEASE.

--Nathan Barnett

Browse pgsql-general by date

  From Date Subject
Next Message ineck 2001-01-03 20:05:21 Warning: PostgresSQL query failed????`
Previous Message Eric Mueller 2001-01-03 19:39:08 RE: RE: RE: Re: MySQL and PostgreSQL speed compare