Primary key on NUMERIC type

From: "Esteban Chiner Sanz" <echiner(at)tissat(dot)es>
To: pgsql-sql(at)postgresql(dot)org
Subject: Primary key on NUMERIC type
Date: 1999-09-14 17:14:22
Message-ID: 37DE826E.A622B22@tissat.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Isn't it possible to put a PRIMARY KEY on a NUMERIC type?
Here is what I do:

CREATE TABLE MNT_TEXTOS(
TEX_CODIGO NUMERIC(5) NOT NULL,
CONSTRAINT C_TEX PRIMARY KEY (TEX_CODIGO));

And I get this error message:

ERROR: Can't find a default operator class for type 1700.

What could be the problem?
Thanks in advance,

Esteban Chiner

------------------------------------------------------------
Esteban Chiner Sanz mailto (work): echiner(at)tissat(dot)es
TISSAT
Av. Aragon, 30, 5ª planta Phone: 96 393 9950
Valencia (SPAIN)

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Mount 1999-09-14 17:33:16 Re: [INTERFACES] JDBC and getting just assigned serial number
Previous Message Stéphane FILLON 1999-09-14 16:50:09 Permission problem with COPY FROM