Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1CFsPx19524 for ; Mon, 12 Feb 2001 10:54:25 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f1CFs5918591; Mon, 12 Feb 2001 10:54:05 -0500 (EST) To: Hubert Palme cc: Stephan Szabo , pgsql-sql@postgresql.org, Hubert Palme Subject: Re: parse error in create index In-reply-to: <3A8329E9.BBD50FCC@uni-wuppertal.de> References: <3A8329E9.BBD50FCC@uni-wuppertal.de> Comments: In-reply-to Hubert Palme message dated "Fri, 09 Feb 2001 00:21:13 +0100" Date: Mon, 12 Feb 2001 10:54:04 -0500 Message-ID: <18588.981993244@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200102/210 X-Sequence-Number: 1400 Hubert Palme 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