primary key and foreign keys - Mailing list pgsql-general

From Grzegorz Jaśkiewicz
Subject primary key and foreign keys
Date
Msg-id 2f4958ff0909240647i403c9dcydca8f30a5a5a6710@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi folks,

I am trying to do a little bit of changes in one of my DBs, basically it involves changing primary keys to just unique index (the columns are already not null);
I was thinking about just dropping Pk in transaction, creating unique index, and creating PK on other column), but I can't do this - due to FK hanging off the PK.

Now, what would be the best way to go around it, without need to drop and recreate FKs ?

--
GJ

pgsql-general by date:

Previous
From: Alexey Klyukin
Date:
Subject: Re: Looking for way to replicate master db to multiple mobile databases
Next
From: "Keller, Oliver"
Date:
Subject: SqlDataSource and npsql