From: CoL <col@mportal.hu>
To: pgsql-sql@postgresql.org
Subject: Re: Error trying to create a functional index.
Date: Tue, 08 Jan 2002 12:57:27 +0100
Message-ID: <3C3ADEA7.9090303@mportal.hu> (raw)
References: <b01eaea0.0201030725.51661db3@posting.google.com>
<a1229v$2a19$1@news.tht.net>
<3C397FF1.20706@mportal.hu>
<3C3AD7A0.9090304@dev.null>
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
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: col@mportal.hu
Subject: Re: Error trying to create a functional index.
In-Reply-To: <3C3ADEA7.9090303@mportal.hu>
* 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