Re: SQL timestamp to date cast - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: SQL timestamp to date cast
Date
Msg-id 20050120095116.GA37770@winnie.fuhr.org
Whole thread Raw
In response to Re: SQL timestamp to date cast  ("Andrei Bintintan" <klodoma@ar-sd.net>)
List pgsql-sql
On Thu, Jan 20, 2005 at 11:41:41AM +0200, Andrei Bintintan wrote:
> >Another possibility would be to create a functional index on datetime:
> >
> >CREATE INDEX user_action_date_idx ON user_action (date(datetime));
> 
> GREAT!!! I thought it is possible but I didn't knew how to make such 
> indexes. :))

See the "Indexes on Expressions" section in the "Indexes" chapter
of the documentation.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


pgsql-sql by date:

Previous
From: "Andrei Bintintan"
Date:
Subject: Re: SQL timestamp to date cast
Next
From: Michael Fuhr
Date:
Subject: Re: Problem on Geometric functions