Received: from orion.SAPserv.Hamburg.dsh.de (Tpolaris2.sapham.debis.de [53.2.131.8]) by hub.org (8.9.3/8.9.3) with SMTP id RAA50001 for ; Thu, 18 Nov 1999 17:26:14 -0500 (EST) (envelope-from wieck@debis.com) Received: by orion.SAPserv.Hamburg.dsh.de for pgsql-sql@postgreSQL.org id m11oZsR-0003kGC; Thu, 18 Nov 99 23:18 MET Message-Id: From: wieck@debis.com (Jan Wieck) Subject: Re: [SQL] Can't create an index on NUMERIC(x,y) To: secret@kearneydev.com (secret) Date: Thu, 18 Nov 1999 23:18:03 +0100 (MET) Cc: pgsql-sql@postgreSQL.org Reply-To: wieck@debis.com (Jan Wieck) In-Reply-To: <3834249B.4EBCAA4@kearneydev.com> from "secret" at Nov 18, 99 11:08:59 am X-Mailer: ELM [version 2.4 PL25] Content-Type: text > ftc=> create index z_test on z(a); > ERROR: Can't find a default operator class for type 1700. > > As you can see above when I try to create an index on a NUMERIC it can't > find the default operator for type xxx, is there a way to fix this? It > hasn't worked since numerics were revised in (6.0?)... > > Any advise would be very appreciated, please cc: secret@kearneydev.com > not just the list :) This is a known problem and is fixed in the v7.0 tree. Unfortunately, there is no easy way to fix it in versions up to v6.5.x. Normally some INSERT's to system catalogs could enable it, but in this case the required function numeric_cmp() is missing (also implemented in v7.0) and adding this would require an initdb run. Sorry, Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #========================================= wieck@debis.com (Jan Wieck) #