Search Postgresql Archives

Re: Lock contention, docs vs. reality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roland Turner <raz.cbfgterfdy.bet@xxxxxx> writes:
> I'm working with 7.4, but the 8.2 docs[1] have the same apparent error:
> ROW SHARE
        
>         Conflicts with the EXCLUSIVE and ACCESS EXCLUSIVE lock modes. 

> If that conflict list were correct, then ROW SHARE wouldn't conflict
> with itself, much less with ROW EXCLUSIVE (required to prevent
> INSERT/UPDATE/DELETE); commonsense dictates that it should conflict with
> both, and experiment demonstrates that it actually does so.

A moment's examination of the source code (see the conflict tables in
src/backend/storage/lmgr/lock.c) shows that the documentation claim is
correct.  Please provide your experiment to the contrary.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux