Search Postgresql Archives

Re: SELECT and RowExclusiveLock

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

 



On Fri, Apr 7, 2017 at 1:25 PM, Tim Nelson <timnels@xxxxxxxxx> wrote:
New to Postgres and I have never seen this condition.  We are getting test applications hanging on SELECT statements with a RowExclusiveLock.  How can a SELECT cause a RowExclusiveLock?

Two common ways:

SELECT ... FOR UPDATE;

SELECT function_that_performs_updates();

There are some more moving parts here, especially transactions, that may be coming into play.  Its hard to say more given the limited and partial detail.  Version and a more complete pg_stat_activity query would be helpful.

David J.


[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