Re: Concurrency and locks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Concurrency and locks
Дата
Msg-id 12139.1045674039@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Concurrency and locks  ("Mike Mascari" <mascarm@mascari.com>)
Ответы Re: Concurrency and locks
Список pgsql-general
"Mike Mascari" <mascarm@mascari.com> writes:
> If one wants to guarantee consistency in user-defined BEFORE
> INSERT/UPDATE triggers and trigger procedures, at the moment, is
> the only recourse SELECT FOR UPDATE? Is this the cause of
> performance problems with the current RI implementation?

Yup, and yup (or at least one cause).  But it's not easy to see how
to build a multiple-locker mechanism that scales to handle very large
numbers of locked tuples.  You can't really expect to keep the state
data in shared memory --- but if there's >1 locker then there's no
room for it in the on-disk tuple header, either.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Greg Copeland
Дата:
Сообщение: Re: Table Partitioning in Postgres:
Следующее
От: "Mark Cave-Ayland"
Дата:
Сообщение: Re: 7.3.1 takes long time to vacuum table?