Re: Add Primary Key to a Table

From: "Tom Haddon" <tom(at)betterhealthfoundation(dot)org>
To: <josh(at)agliodbs(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Add Primary Key to a Table
Date: 2002-08-02 23:20:23
Message-ID: NEBBIHDGCLBEJMPFAMLAOELLCHAA.tom@betterhealthfoundation.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Josh,

I think that solves it for me - I'm using 7.1.3 - will upgrade
appropriately.

Thanks, Tom

-----Original Message-----
From: Josh Berkus [mailto:josh(at)agliodbs(dot)com]
Sent: Friday, August 02, 2002 4:20 PM
To: Tom Haddon; pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Add Primary Key to a Table

Tom,

> ALTER TABLE "agency_contact_info" ADD CONSTRAINT
"agency_contact_info_pkey"
> PRIMARY KEY ("id");
>
> I get a message saying "ALTER TABLE / ADD CONSTRAINT not implemented for
> that constraint type". Is this a bug, or am I doing something wrong?

What version are you using? That command is supported with Postgres 7.2,
but
not with earlier versions.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-08-02 23:52:38 Re: What about this?
Previous Message Josh Berkus 2002-08-02 23:19:51 Re: Add Primary Key to a Table