From: Nick Fankhauser <nickf@ontko.com>
To: PGSQL-SQL <pgsql-sql@postgresql.org>
Subject: creating an index on a function
Date: Fri, 15 Feb 2002 09:26:25 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGIELDEFAA.nickf@ontko.com> (raw)
Good Morning everyone!
I just tried to create an index on a function with no success. My syntax
seems to match the syntax shown in the docs for Create Index, but I get an
error. Any thoughts would be appreciated. Here is my attempt-
First, I did a select to make sure I had the function syntax correct, and
then tried to create the index:
staging=# select count(*) from event where
date_trunc('day',event_date_time)='07/27/2001';
count
-------
27
(1 row)
staging=#
staging=# create index event_day on
event(date_trunc('day',event_date_time));
ERROR: parser: parse error at or near "'"
Thanks!
-Nick
--------------------------------------------------------------------------
Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/
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: nickf@ontko.com
Subject: Re: creating an index on a function
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGIELDEFAA.nickf@ontko.com>
* 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