pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Seb <spluque@gmail.com>
To: pgsql-sql@postgresql.org
Subject: rename primary key
Date: Thu, 14 Jan 2010 21:28:23 -0600
Message-ID: <87hbqo11yg.fsf@kolob.sebmags.homelinux.org> (raw)

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




view thread (6+ messages)  latest in thread

Message-ID: <87hbqo11yg.fsf@kolob.sebmags.homelinux.org>
Permalink:  ../87hbqo11yg.fsf@kolob.sebmags.homelinux.org/
Also on:    postgresql.org/message-id/87hbqo11yg.fsf@kolob.sebmags.homelinux.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: spluque@gmail.com
  Subject: Re: rename primary key
  In-Reply-To: <87hbqo11yg.fsf@kolob.sebmags.homelinux.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox