Re: "slow" queries

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brian Cox <brian(dot)cox(at)ca(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: "slow" queries
Date: 2009-03-02 19:29:31
Message-ID: 22227.1236022171@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Brian Cox <brian(dot)cox(at)ca(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Brian Cox 2009-03-02 19:55:54 Re: "slow" queries
Previous Message Robert Haas 2009-03-02 19:04:34 Re: "slow" queries