altering foreign keys

From: "Adam Rich" <adam(dot)r(at)sbcglobal(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: altering foreign keys
Date: 2008-01-22 19:11:36
Message-ID: 008401c85d2a$9c7b8750$d57295f0$@r@sbcglobal.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In my database, I have a core table that nearly all other tables
key against. Now I need to adjust all of those foreign keys to
add a "on update cascade" action. Is there a way to alter the
existing keys? (it didn't jump out at me in the manual)

If not, is there a serious issue preventing this feature?

If I have to drop and re-create all of the foreign keys, is it
possible to wrap the whole operation in a transaction without
risking invalid inserts in the referring tables? (I come from
an Oracle background, where DDL causes an implicit commit)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gevik Babakhani 2008-01-22 19:20:30 PostgreSQL professionals group at LinkedIn.com
Previous Message brian 2008-01-22 16:26:45 Re: Stored procedures when and how: was: Sun acquires MySQL