From: Mitch Vincent <mitch@venux.net>
To: pgsql-sql@postgresql.org
Subject: date() indexing error..
Date: Fri, 26 May 2000 10:31:04 -0400
Message-ID: <00a601bfc71f$05ed13c0$4100000a@venux.net> (raw)
Using PostgreSQL 7.0 I'm Doing ...
ipa2=# CREATE INDEX "app_stat_month" on applicant_stats(date(month));
ERROR: SQL-language function not supported in this context.
ipa2=# \d applicant_stats
Table "applicant_stats"
Attribute | Type | Modifier
-----------+-----------+----------
app_id | integer |
month | date |
user_id | integer |
view_time | timestamp |
Index: app_id
When I try and do the above there is one record in the database.
ipa2=# select * from applicant_stats;
app_id | month | user_id | view_time
--------+------------+---------+------------------------------
56941 | 05-26-2000 | 291 | Fri May 26 09:19:41 2000 EDT
(1 row)
If I erase it I get the same error, only when I try and insert data into the
table..
I'm doing these kind of indexes on several tables, this is the only one I'm
having this occur.. Any ideas?
Thanks!
-Mitch
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: mitch@venux.net
Subject: Re: date() indexing error..
In-Reply-To: <00a601bfc71f$05ed13c0$4100000a@venux.net>
References: <00a601bfc71f$05ed13c0$4100000a@venux.net>
* 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