Re: How can you have an Exclusive Lock on nothing? please help me understand this lock monitoring query output

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Aleksey Tsalolikhin <atsaloli(dot)tech(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How can you have an Exclusive Lock on nothing? please help me understand this lock monitoring query output
Date: 2011-04-15 07:42:58
Message-ID: BANLkTinSc-bdN5Q-9LDy-exa23c8ayHcsQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 15, 2011 at 2:12 AM, Aleksey Tsalolikhin
<atsaloli(dot)tech(at)gmail(dot)com> wrote:

> Hi.  I use the following query (from
> http://wiki.postgresql.org/wiki/Lock_Monitoring)
> to monitor locks; and I've got an ExlusiveLock that does not have a relation
> name associated with it.  What is locked with the Exclusive Lock in this case,
> please?  (it's between "d" and "e" tables below)

Locks can be held on databases, relations, rows and also show for transactions.

So the absence of a relation name just means it is one of the other
kinds of lock.

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wim Bertels 2011-04-15 08:07:11 Re: function to filter out tokens (sql syntax lexical)?
Previous Message Basil Bourque 2011-04-15 05:20:00 Re: UUID can be written to row when passed as parameter/argument to a PL/pgSQL function. Feature or bug?