From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: bakkiya <bakkiya@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: postgresql statements are waiting
Date: Tue, 30 Nov 2010 10:52:53 -0600
Message-ID: <4CF4D7850200002500037F87@gw.wicourts.gov> (raw)
In-Reply-To: <1291117080292-3285939.post@n5.nabble.com>
References: <1291117080292-3285939.post@n5.nabble.com>
bakkiya <bakkiya@gmail.com> wrote:
> I am working on a performance issue with a partitioned table. Some
> of my sql statements against this partition table is in waiting
> state for long time. I have queried waiting=true in
> pg_stat_activity. Now, is there a way to find out which sql is
> making other statements to wait.
You probably need to take a look at pg_locks for details. If you
combine information from pg_locks, pg_stat_activity, and pg_class,
you can get a pretty good idea what's up.
-Kevin
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-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, bakkiya@gmail.com
Subject: Re: postgresql statements are waiting
In-Reply-To: <4CF4D7850200002500037F87@gw.wicourts.gov>
References: <1291117080292-3285939.post@n5.nabble.com> <4CF4D7850200002500037F87@gw.wicourts.gov>
* 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