BUG #5710: lock requires unintuitive privileges

Поиск
Список
Период
Сортировка
От
Тема BUG #5710: lock requires unintuitive privileges
Дата
Msg-id 201010141800.o9EI0J8d009401@wwwmaster.postgresql.org
обсуждение исходный текст
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      5710
Logged by:
Email address:      mstone+postgres@mathom.us
PostgreSQL version: 8.4.5
Operating system:   Ubuntu
Description:        lock requires unintuitive privileges
Details:

I haven't been able to find specific documentation on what privileges are
required to use various levels of the LOCK command. A comment somewhere in
the interactive documentation (can't find it again) said that UPDATE is
required for ROW EXCLUSIVE, which does seem to match reality. But the
documentation in section 13.3 says that a ROW EXCLUSIVE lock is implicitly
granted for "UPDATE, DELETE, and INSERT" -- which begs the question of why
UPDATE is required for the explicit lock and INSERT is not sufficient. I'm
not sure if this is a bug or a feature; if the latter I'd suggest that
synchronizing the privileges required for explicit and implicit locks would
be helpful.

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

Предыдущее
От: David Newall
Дата:
Сообщение: Re: rollback to savepoint leads to transaction already in progress
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #5650: Postgres service showing as stopped when in fact it is running