pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hubert Palme <palme@uni-wuppertal.de>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: Hubert Palme <hubert@news.tht.net>
Subject: Re: parse error in create index
Date: Fri, 09 Feb 2001 00:21:13 +0100
Message-ID: <3A8329E9.BBD50FCC@uni-wuppertal.de> (raw)
References: <Pine.BSF.4.21.0102060853160.43759-100000@megazone23.bigpanda.com>

Stephan Szabo wrote:
> 
> Functional indexes cannot currently take constant values to the function,
> so it's complaining about the constant 'month'.  The current workaround is
> probably to create a function that does the date_part('month', <arg>) for
> you and then use that function in the index creation.

OK, I got it now -- good old pascal/FORTRAN fashion. But now I get

adressen=> CREATE INDEX xxx ON geburtstage (geb_monat(geburtstag));
ERROR:  DefineIndex: (null) class not found
adressen=>

What is a class in this sense, and where can I read about it in the
documentation?
(geburtstag is a row of type DATE in the table geburtstage)

-- 
Hubert Palme
palme@uni-wuppertal.de



view thread (7+ messages)  latest in thread

Message-ID: <3A8329E9.BBD50FCC@uni-wuppertal.de>
Permalink:  ../3A8329E9.BBD50FCC@uni-wuppertal.de/
Also on:    postgresql.org/message-id/3A8329E9.BBD50FCC@uni-wuppertal.de

 · 

reply

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: palme@uni-wuppertal.de, sszabo@megazone23.bigpanda.com, hubert@news.tht.net
  Subject: Re: parse error in create index
  In-Reply-To: <3A8329E9.BBD50FCC@uni-wuppertal.de>
  References: <Pine.BSF.4.21.0102060853160.43759-100000@megazone23.bigpanda.com> <3A8329E9.BBD50FCC@uni-wuppertal.de>

* 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