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 обсуждение исходный текст |
Ответ на | 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
|
Список | pgsql-patches |
"Tom Lane" <tgl@sss.pgh.pa.us> writes: > "Affan Salman" <affan@enterprisedb.com> 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 по дате отправления: