Re: Changing the Primary Key Column

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pdxpug(at)postgresql(dot)org
Subject: Re: Changing the Primary Key Column
Date: 2011-02-24 16:58:31
Message-ID: alpine.LNX.2.00.1102240856490.4006@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pdxpug

On Thu, 24 Feb 2011, Brian Kurle wrote:

> For one of my tables, after performing a pg_dump, I see the following:
>
> ALTER TABLE ONLY action
> ADD CONSTRAINT action_pkey PRIMARY KEY (transactionid);
>
> You would do something similar.

Brian,

Thanks very much for clarifying the syntax. While I read the doc page I
did not have all necessary parts in the one statement. Now I understand how
to add a new primary key.

Rich

In response to

Responses

Browse pdxpug by date

  From Date Subject
Next Message Michael Ewan 2011-02-24 17:41:19 Re: Changing the Primary Key Column
Previous Message Brian Kurle 2011-02-24 16:33:35 Re: Changing the Primary Key Column