Re: Patch: Show process IDs of processes holding a lock; show relation and tuple infos of a lock to acquire - Mailing list pgsql-hackers

From Christian Kruse
Subject Re: Patch: Show process IDs of processes holding a lock; show relation and tuple infos of a lock to acquire
Date
Msg-id 20140201104154.GD12556@defunct.ch
Whole thread Raw
In response to Re: Patch: Show process IDs of processes holding a lock; show relation and tuple infos of a lock to acquire  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Patch: Show process IDs of processes holding a lock; show relation and tuple infos of a lock to acquire  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
Hi,

On 01/02/14 02:45, Fujii Masao wrote:

>     LOG:  process 33662 still waiting for ShareLock on transaction
> 1011 after 1000.184 ms
>     DETAIL:  Process holding the lock: 33660. Request queue: 33662.
> [… snip …]
>     LOG:  process 33665 still waiting for ExclusiveLock on tuple (0,4)
> of relation 16384 of database 12310 after 1000.134 ms
>     DETAIL:  Process holding the lock: 33662. Request queue: 33665
>
> This log message says that the process 33662 is holding the lock, but
> it's not true.

As the message says: first lock is waiting for the transaction, second
one for the tuple. So that are two different locks thus the two
different holders and queues. So…

> Is this the intentional behavior?

Yes, I think so.

Best regards,

-- Christian Kruse               http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services


pgsql-hackers by date:

Previous
From: "MauMau"
Date:
Subject: Re: [bug fix] postgres.exe fails to start on Windows Server 2012 due to ASLR
Next
From: Christian Kruse
Date:
Subject: Re: [bug fix] pg_ctl fails with config-only directory