From: Michael Fuhr <mike@fuhr.org>
To: Andrei Bintintan <klodoma@ar-sd.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL timestamp to date cast
Date: Thu, 20 Jan 2005 02:51:16 -0700
Message-ID: <20050120095116.GA37770@winnie.fuhr.org> (raw)
In-Reply-To: <010a01c4fed4$3fba1ca0$0b00a8c0@forge>
References: <006b01c4fecd$6d37c9e0$0b00a8c0@forge>
<20050120093331.GA37672@winnie.fuhr.org>
<010a01c4fed4$3fba1ca0$0b00a8c0@forge>
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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike@fuhr.org, klodoma@ar-sd.net
Subject: Re: SQL timestamp to date cast
In-Reply-To: <20050120095116.GA37770@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox