Re: Unable To Modify Table - Mailing list pgsql-sql

From Steve Crawford
Subject Re: Unable To Modify Table
Date
Msg-id 4F0F101B.5050105@pinpointresearch.com
Whole thread Raw
In response to Unable To Modify Table  (Carlos Mennens <carlos.mennens@gmail.com>)
List pgsql-sql
On 01/12/2012 08:42 AM, Carlos Mennens wrote:
> I seem to have an issue where I can't modify a table due to another
> tables foreign key association:
>
> ...
>
> How does one accomplish my goal? Is this difficult to change or once
> that foreign key is created, are you stuck with that particular
> constraint?
>

Try updating the values in both tables within a transaction with 
constraints set to deferred:
http://www.postgresql.org/docs/current/static/sql-set-constraints.html

Cheers,
Steve


pgsql-sql by date:

Previous
From: Carlos Mennens
Date:
Subject: Unable To Modify Table
Next
From: Adrian Klaver
Date:
Subject: Re: Unable To Modify Table