From: Tom Lane <tgl@sss.pgh.pa.us>
To: Litao Wu <litaowu@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: insert waits for delete with trigger
Date: Tue, 10 Aug 2004 12:53:10 -0400
Message-ID: <29338.1092156790@sss.pgh.pa.us> (raw)
In-Reply-To: <20040810144838.72955.qmail@web13126.mail.yahoo.com>
References: <20040810144838.72955.qmail@web13126.mail.yahoo.com>
Litao Wu <litaowu@yahoo.com> writes:
> How about:
> select c.relname, l.pid, l.mode, l.granted,
> a.current_query
> from pg_locks l, pg_class c, pg_stat_activity a
> where
> l.relation = c.oid
> AND l.pid = a.procpid
> order by l.granted, l.pid;
You can't join to pg_class without eliminating the transaction lock rows
(because they have NULLs in the relation field).
regards, tom lane
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, litaowu@yahoo.com
Subject: Re: insert waits for delete with trigger
In-Reply-To: <29338.1092156790@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