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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: this is in plain text (row level locks)
Дата
Msg-id 11640.1060110130@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: this is in plain text (row level locks)  ("Jenny -" <nat_lazy@hotmail.com>)
Список pgsql-hackers
"Jenny -" <nat_lazy@hotmail.com> writes:
> so even though the application locks a row in a table, table-level locks are 
> automatically taken by postgesql ? why is that?

So that the table doesn't disappear while you're trying to scan it.  (Or
afterwards --- a row-level lock wouldn't be noticed by DROP TABLE.)

Note that AccessShareLock is a pretty weak kind of lock, and holding it
does not prevent most other operations.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: logging stuff
Следующее
От: Tom Lane
Дата:
Сообщение: Re: TODO: trigger features