Re: [SQL] Can't create an index on NUMERIC(x,y)

From: wieck(at)debis(dot)com (Jan Wieck)
To: secret(at)kearneydev(dot)com (secret)
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Can't create an index on NUMERIC(x,y)
Date: 1999-11-18 22:18:03
Message-ID: m11oZsR-0003kGC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> 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(at)kearneydev(dot)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(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Douglas Nichols 1999-11-18 23:26:24 sql question: min remapped value
Previous Message secret 1999-11-18 16:08:59 Can't create an index on NUMERIC(x,y)