Re: referential Integrity and SHARE locks
От | Gregory Stark |
---|---|
Тема | Re: referential Integrity and SHARE locks |
Дата | |
Msg-id | 873b5ivog3.fsf@stark.xeocode.com обсуждение исходный текст |
Ответ на | Re: referential Integrity and SHARE locks (Marc Munro <marc@bloodnok.com>) |
Ответы |
Re: referential Integrity and SHARE locks
|
Список | pgsql-hackers |
"Marc Munro" <marc@bloodnok.com> writes: > Proposal 1: Alter the way RI triggers fire, so that they complete before > locking the row against which they fire. It's kind of hard to know what records the user will choose to update before he actually does the update... > Proposal 2: Lock the index associated with the parent record, rather > than the parent record itself. That doesn't help in our case because each version of a record has an index entry. So even updates to unrelated fields imply index modifications. Worse, deleting and updating don't remove the old index entries so even if you've locked them you won't prevent people from doing exactly those operations you're trying to avoid. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: