Re: Deferred RI trigger for non-key UPDATEs and subxacts

Поиск
Список
Период
Сортировка
Искать
От
Gregory Stark
Тема
Re: Deferred RI trigger for non-key UPDATEs and subxacts
Дата
Msg-id
873azobzzj.fsf@oxford.xeocode.com
Ответ на
Список
Дерево обсуждения
Deferred RI trigger for non-key UPDATEs and subxacts "Affan Salman" <affan@enterprisedb.com>
Re: Deferred RI trigger for non-key UPDATEs and subxacts "Simon Riggs" <simon@2ndquadrant.com>
Re: Deferred RI trigger for non-key UPDATEs and subxacts Tom Lane <tgl@sss.pgh.pa.us>
Re: Deferred RI trigger for non-key UPDATEs and subxacts Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: Deferred RI trigger for non-key UPDATEs and subxacts Tom Lane <tgl@sss.pgh.pa.us>
Re: Deferred RI trigger for non-key UPDATEs and subxacts "Affan Salman" <affan@enterprisedb.com>
Re: Deferred RI trigger for non-key UPDATEs and subxacts Tom Lane <tgl@sss.pgh.pa.us>
Re: Deferred RI trigger for non-key UPDATEs and subxacts "Affan Salman" <affan@enterprisedb.com>
Re: Deferred RI trigger for non-key UPDATEs and subxacts Gregory Stark <stark@enterprisedb.com>
Re: Deferred RI trigger for non-key UPDATEs and subxacts Gregory Stark <stark@enterprisedb.com>

"Tom Lane"  writes:

> "Affan Salman"  writes:
>> With some time to spare, I thought I'd submit a quick-fix patch to the
>> issue I reported here:
>>       http://archives.postgresql.org/pgsql-hackers/2007-07/msg00339.php
>
> I don't think this is right.  If the original tuple was inserted by a
> subtransaction of our transaction, it will have been checked at
> subtransaction subcommit, no?  

That doesn't sound right. 

> RELEASE SAVEPOINT destroys a savepoint previously defined in the current
> transaction.
>
> Destroying a savepoint makes it unavailable as a rollback point, but it has
> no other user visible behavior.


On the other hand what happens if you have constraints not deferred, insert a
record, then set constraints deferred and update it?

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

В списке pgsql-patches по дате отправления
От: Greg Smith
Дата:
От: Stephan Szabo
Дата:
FAQ