Re: lock table question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lock table question
Дата
Msg-id 23095.1041283028@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: lock table question  ("Andy Kriger" <akriger@greaterthanone.com>)
Ответы Re: lock table question  ("Andy Kriger" <akriger@greaterthanone.com>)
Список pgsql-general
"Andy Kriger" <akriger@greaterthanone.com> writes:
> It doesn't lock the row from being read. I want to make sure the row cannot
> be read until I have done my read and updated if necessary.

Why?

You're really swimming upstream against the notion of MVCC if you want
to prevent pure readers from proceeding while your update transaction
runs.  Since you claim to be concerned about bottlenecks, I do not see
why you shouldn't embrace the MVCC worldview, rather than fighting it
tooth and nail.

            regards, tom lane

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

Предыдущее
От: "Andy Kriger"
Дата:
Сообщение: Re: lock table question
Следующее
От: Manfred Koizar
Дата:
Сообщение: Re: lock table question