pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Si Chen <schen@graciousstyle.com>
To: pgsql-admin@postgresql.org
Subject: How to identify the transaction of a lock?
Date: Wed, 21 Jul 2004 13:04:02 -0700
Message-ID: <40FECC32.2010207@graciousstyle.com> (raw)

Hello.  I am having a problem with a locked table that causes postmaster 
to hang on inserts.  I went to pg_locks and got:

transaction   6536720
pid 15992
mode ExclusiveLock
granted t

How do I go from this transaction identifier to finding out which 
transaction caused it to lock, so I can resolve it in my code?

Thanks!

Si Chen




Message-ID: <40FECC32.2010207@graciousstyle.com>
Permalink:  ../40FECC32.2010207@graciousstyle.com/
Also on:    postgresql.org/message-id/40FECC32.2010207@graciousstyle.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: schen@graciousstyle.com
  Subject: Re: How to identify the transaction of a lock?
  In-Reply-To: <40FECC32.2010207@graciousstyle.com>
  References: <40FECC32.2010207@graciousstyle.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox