Re: [HACKERS] another DECIMAL problem

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: "[Jos_] Soares" <jose(at)sferacarta(dot)com>
Cc: hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] another DECIMAL problem
Date: 1999-09-27 18:05:29
Message-ID: 199909271805.OAA10180@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi all,
>
> I'm trying to create an index on a composite key using a DECIMAL type
> but PostgreSQL raises the following error:
>
>
> CREATE TABLE header (
> year decimal(4) NOT NULL,
> number INTEGER NOT NULL,
> date DATE NOT NULL,
> cod_client CHAR(4) NOT NULL,
> CONSTRAINT k_header PRIMARY KEY (year,number)
> );
> NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index 'k_header'
> for tabl
> e 'header'
> ERROR: Can't find a default operator class for type 1700.
>

We have the TODO item:

* Add index on NUMERIC/DECIMAL type

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-09-27 18:18:57 Re: [PATCHES] Index access using multi-column indices
Previous Message Bruce Momjian 1999-09-27 18:04:42 Re: [HACKERS] Inefficiencies in COPY command