Re: row locking question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: row locking question
Дата
Msg-id 9449.1226968644@sss.pgh.pa.us
обсуждение исходный текст
Ответ на row locking question  (Darren Govoni <darren@ontrenet.com>)
Ответы Re: row locking question  (Darren Govoni <darren@ontrenet.com>)
Список pgsql-general
Darren Govoni <darren@ontrenet.com> writes:
> For example, there is a table with many rows. Threads are doing
> "SELECTS" to read some rows. They should be allowed to get results on
> rows that are not currently locked by another thread's SELECT,FOR UPDATE
> or equivalent read lock for those rows only.

Make those threads use SELECT FOR SHARE.

            regards, tom lane

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

Предыдущее
От: Darren Govoni
Дата:
Сообщение: row locking question
Следующее
От: "Hiroshi Saito"
Дата:
Сообщение: Re: Trying Compile libpq.dll with VC++ 9.0, but need help