pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedCan't create an index on NUMERIC(x,y)
2+ messages / 2 participants
[nested] [flat]
* Can't create an index on NUMERIC(x,y)
@ 1999-11-18 16:08 secret <secret@kearneydev.com>
1999-11-18 22:18 ` Re: [SQL] Can't create an index on NUMERIC(x,y) Jan Wieck <wieck@debis.com>
0 siblings, 1 reply; 2+ messages in thread
From: secret @ 1999-11-18 16:08 UTC (permalink / raw)
To: pgsql-sql
ftc=> create index z_test on z(a);
ERROR: Can't find a default operator class for type 1700.
ftc=> \d z
Table = z
+----------------------------------+----------------------------------+-------+
| Field | Type |
Length|
+----------------------------------+----------------------------------+-------+
| a | numeric |
9.3 |
+----------------------------------+----------------------------------+-------+
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 :)
--David
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [SQL] Can't create an index on NUMERIC(x,y)
1999-11-18 16:08 Can't create an index on NUMERIC(x,y) secret <secret@kearneydev.com>
@ 1999-11-18 22:18 ` Jan Wieck <wieck@debis.com>
0 siblings, 0 replies; 2+ messages in thread
From: wieck@debis.com @ 1999-11-18 22:18 UTC (permalink / raw)
To: secret@kearneydev.com; +Cc: 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@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) #
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-11-18 22:18 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-11-18 16:08 Can't create an index on NUMERIC(x,y) secret <secret@kearneydev.com>
1999-11-18 22:18 ` Jan Wieck <wieck@debis.com>
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