CREATION OF PRIMARY KEYS - Mailing list pgsql-general

From Andy Hallam
Subject CREATION OF PRIMARY KEYS
Date
Msg-id 9ov45k$30kj$1@news.tht.net
Whole thread Raw
List pgsql-general
Hi all.

I'm trying to create a PRIMARY KEY on a table I've created but am not having
any success.

TABLE SCHEMA SQL = :

CREATE TABLE X (XCOL CHAR(10))


When I execute either of the below 2 ALTER TABLE commands:

ALTER TABLE X ADD CONSTRAINT PK_X PRIMARY KEY (XCOL)
or
ALTER TABLE X ADD PRIMARY KEY (XCOL)


I keep getting the following error message:

ERROR: ALTER TABLE/ ADD CONSTRAINT is not implemented for that constraint
type. (State:S1000, Native Code: 7)


Can't find anything in the documentation?

Any ideas ?

thanks.

Andy
ahm@exel.co.uk



pgsql-general by date:

Previous
From: "Joel Pang"
Date:
Subject: Granting access on store procedure to other users
Next
From: stony8@gmx.de (Alexander Steinert)
Date:
Subject: storage of PS doc as file or large object or text