primary key and foreign keys

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема primary key and foreign keys
Дата
Msg-id 2f4958ff0909240647i403c9dcydca8f30a5a5a6710@mail.gmail.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Alexey Klyukin
Дата:
Сообщение: Re: Looking for way to replicate master db to multiple mobile databases
Следующее
От: "Keller, Oliver"
Дата:
Сообщение: SqlDataSource and npsql