Re: Modifying a table that other tables refer to for foreigh key

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Modifying a table that other tables refer to for foreigh key
Дата
Msg-id Pine.BSF.4.21.0105291244560.1465-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Modifying a table that other tables refer to for foreigh key  ("Mihai Gheorghiu" <tanethq@earthlink.net>)
Список pgsql-general
On Tue, 29 May 2001, Mihai Gheorghiu wrote:

> I have a database with multiple referential integrity links.
> I want to make important changes to one of the tables, which is referenced
> by other tables for foreign keys (like deleting some columns, or changing
> data type).
> What would be the easiest way to do it (without re-creating all the other
> tables that are refering to it)?

Drop the table, make the changes and use alter table add constraint to
re-add the constraints to the referencing tables (the original constraints
should go away when the other table is dropped)



В списке pgsql-general по дате отправления:

Предыдущее
От: "Tim Barnard"
Дата:
Сообщение: PQclear question...
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: Fresh Installation of 7.1.1 RPMs = no binding to a port