Re: Error trying to create a functional index. - Mailing list pgsql-sql

From CoL
Subject Re: Error trying to create a functional index.
Date
Msg-id 3C3ADEA7.9090303@mportal.hu
Whole thread Raw
In response to Re: Error trying to create a functional index.  (CoL <col@mportal.hu>)
List pgsql-sql
Hi,

Jochem van Dieten wrote:

> CoL wrote:
> 
>> Steve: of course you can make functional indices:
>>
>> So why this not workin???? (not workin for me 2 too, pg 7.1.3)
>> "CREATE INDEX eventdateindex ON event (date_trunc('day', eventstamp));"
>>
> 
> Wouldn't your problem be that 'day' is a constant?
> Jochem

sure it is, but date_trunc takes this, so what is the way to create a date_trunc part or any 

date function index on a timestamp?

Or it's not possible?

CoL




pgsql-sql by date:

Previous
From: "steve boyle"
Date:
Subject: Re: SQL Joins
Next
From: "Ali Gumus"
Date:
Subject: Search The pg.pm