Re: this is in plain text (row level locks)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: this is in plain text (row level locks)
Дата
Msg-id 13800.1059006990@sss.pgh.pa.us
обсуждение исходный текст
Ответ на this is in plain text (row level locks)  ("Jenny -" <nat_lazy@hotmail.com>)
Ответы Re: this is in plain text (row level locks)  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
Список pgsql-hackers
"Jenny -" <nat_lazy@hotmail.com> writes:
> Iam trying to acquire rowlevel locks in postgresql. I try doing this:
> 'select * from students where name='Larry' for update;
> But by looking at the holding array of proclock , I've noticed that by doing 
> this only
> AccessShareLock gets acquired which is a table level lock.

Row-level locks are not recorded in proclock --- they are implemented by
marking the individual tuple on-disk.  If we tried to record them in
shared memory, it'd be very easy to run out of shared memory, because
you could be holding row locks on a large number of tuples.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: SELECT FOR UPDATE NOWAIT
Следующее
От: Sailesh Krishnamurthy
Дата:
Сообщение: Re: this is in plain text (row level locks)