pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hubert Palme <palme@uni-wuppertal.de>
Cc: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org, Hubert Palme <hubert@news.tht.net>
Subject: Re: parse error in create index
Date: Mon, 12 Feb 2001 10:54:04 -0500
Message-ID: <18588.981993244@sss.pgh.pa.us> (raw)
In-Reply-To: <3A8329E9.BBD50FCC@uni-wuppertal.de>
References: <Pine.BSF.4.21.0102060853160.43759-100000@megazone23.bigpanda.com>
	<3A8329E9.BBD50FCC@uni-wuppertal.de>

Hubert Palme <palme@uni-wuppertal.de> writes:
> adressen=> CREATE INDEX xxx ON geburtstage (geb_monat(geburtstag));
> ERROR:  DefineIndex: (null) class not found
> adressen=>

Apparently you're using 6.5 or older ... I'd recommend updating!

IIRC, in <= 6.5 you *must* specify an operator class for a functional
index.  So,

CREATE INDEX xxx ON geburtstage (geb_monat(geburtstag) float8_ops);

(assuming that geb_monat returns a float8, else adjust to suit).

Don't have a 6.5 server running anymore to check this on, however.

			regards, tom lane



view thread (7+ messages)

Message-ID: <18588.981993244@sss.pgh.pa.us>
Permalink:  ../18588.981993244@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18588.981993244@sss.pgh.pa.us

 · 

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

* 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