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  (Marc Munro <marc@bloodnok.com>)
Список 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 по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Logging functions executed by queries in 8.2?
Следующее
От: Rick Gigger
Дата:
Сообщение: Re: 10 weeks to feature freeze (Pending Work)