rename primary key

From: Seb <spluque(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: rename primary key
Date: 2010-01-15 03:28:23
Message-ID: 87hbqo11yg.fsf@kolob.sebmags.homelinux.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

Is it possible to rename a primary key? I learnt that to rename foreign
keys one has to drop it and recreate with the new name, or add a new new
and drop the old one. What is the approach for primary keys? Thanks.

Cheers,

--
Seb

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ian Barwick 2010-01-15 03:34:15 Re: rename primary key
Previous Message gherzig 2010-01-12 16:17:40 Re: problem using regexp_replace