Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f1CEvnx07771 for ; Mon, 12 Feb 2001 09:57:49 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f18NUTx45112 for ; Thu, 8 Feb 2001 18:30:29 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f18NLJL10429 for pgsql-sql@postgresql.org; Thu, 8 Feb 2001 18:21:19 -0500 (EST) (envelope-from news) From: Hubert Palme X-Newsgroups: comp.databases.postgresql.sql Subject: Re: parse error in create index Date: Fri, 09 Feb 2001 00:21:13 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 20 Message-ID: <3A8329E9.BBD50FCC@uni-wuppertal.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: scrappy@hub.org Cc: Hubert Palme To: Stephan Szabo X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.17 i586) X-Accept-Language: de, en To: pgsql-sql@postgresql.org X-Archive-Number: 200102/202 X-Sequence-Number: 1391 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', ) 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