Re: Unable To Modify Table

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: Unable To Modify Table
Дата
Msg-id 4F0F101B.5050105@pinpointresearch.com
обсуждение исходный текст
Ответ на Unable To Modify Table  (Carlos Mennens <carlos.mennens@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Carlos Mennens
Дата:
Сообщение: Unable To Modify Table
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Unable To Modify Table