pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brian Cox <brian.cox@ca.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: "slow" queries
Date: Mon, 02 Mar 2009 14:29:31 -0500
Message-ID: <22227.1236022171@sss.pgh.pa.us> (raw)
In-Reply-To: <49AC23FF.9070103@ca.com>
References: <49AC23FF.9070103@ca.com>

Brian Cox <brian.cox@ca.com> writes:
> select locktype,database,relation,virtualxid,virtualtransaction,pid,mode 
> from pg_locks order by mode;

If you hadn't left out the "granted" column we could be more sure,
but what it looks like to me is the DROP (pid 13842) is stuck behind
the <IDLE> transaction (pid 13833).  In particular these two rows of
pg_locks look like a possible conflict:

>   relation      | 26472437 | 26472508 |            | 15/69749 
> | 13842 | AccessExclusiveLock

>   relation      | 26472437 | 26472508 |            | 11/131 
> | 13833 | AccessShareLock

			regards, tom lane



view thread (14+ messages)  latest in thread

Message-ID: <22227.1236022171@sss.pgh.pa.us>
Permalink:  ../22227.1236022171@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22227.1236022171@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, brian.cox@ca.com
  Subject: Re: "slow" queries
  In-Reply-To: <22227.1236022171@sss.pgh.pa.us>

* 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