Re: SELECT Generating Row Exclusive Locks?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SELECT Generating Row Exclusive Locks?
Дата
Msg-id 6605.1133412725@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SELECT Generating Row Exclusive Locks?  ("Thomas F. O'Connell" <tfo@sitening.com>)
Ответы Re: SELECT Generating Row Exclusive Locks?  ("Thomas F. O'Connell" <tfo@sitening.com>)
Список pgsql-general
"Thomas F. O'Connell" <tfo@sitening.com> writes:
> For instance, if a long SELECT were running against table_foo and an
> UPDATE arrived wanting to update table_foo, I would expect to see in
> pg_locks an entry corresponding to the SELECT with granted = true and
> an entry corresponding to the UPDATE with granted = false.

Why would you expect to see that exactly?  SELECTs don't block UPDATEs.

            regards, tom lane

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: How to run a stored PL/pgSQL function?
Следующее
От: "Thomas F. O'Connell"
Дата:
Сообщение: Re: SELECT Generating Row Exclusive Locks?