Re: table-level and row-level locks.

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

Please do not use HTML mail on this list ...

Anyway, the answer to your question is that row locks are recorded on
disk (by marking the tuple as locked).  We'd soon run out of memory
if we tried to record them in the shared lock table.
        regards, tom lane


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

Предыдущее
От: "Maksim Likharev"
Дата:
Сообщение: Re: [GENERAL] PG crash on simple query, story continues
Следующее
От: Sailesh Krishnamurthy
Дата:
Сообщение: agg/order-by question