Обсуждение: Re: funny lock mode in DropTrigger

Поиск
Список
Период
Сортировка

Re: funny lock mode in DropTrigger

От
Alvaro Herrera
Дата:
Excerpts from Alvaro Herrera's message of vie oct 21 00:40:26 -0300 2011:

> Besides, the docs state that no backend code uses ShareRowExclusiveLock
> anyway (13.3 Explicit locking).  I guess that if the patch to reduce
> lock strength in alter table goes in again, it'll need to update this
> chapter to match.

Ah, I also noticed that the ALTER EXTENSION and SECURITY LABEL commands
use ShareUpdateExclusiveLock, and they failed when committed to note
this in the 13.3 chapter of the docs.  Not sure how strict we are about
documenting these things.  (I note COMMENT already fails to document its
ShareUpdExcl lock).

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


Re: funny lock mode in DropTrigger

От
Tom Lane
Дата:
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Ah, I also noticed that the ALTER EXTENSION and SECURITY LABEL commands
> use ShareUpdateExclusiveLock, and they failed when committed to note
> this in the 13.3 chapter of the docs.  Not sure how strict we are about
> documenting these things.  (I note COMMENT already fails to document its
> ShareUpdExcl lock).

To my mind, the list in 13.3 is only meant to cover what lock levels are
used *with tables*.  Locks applied to other kinds of objects would
probably need a different list altogether.
        regards, tom lane