pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
postgresql statements are waiting
3+ messages / 3 participants
[nested] [flat]

* postgresql statements are waiting
@ 2010-11-30 11:38  bakkiya <bakkiya@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: bakkiya @ 2010-11-30 11:38 UTC (permalink / raw)
  To: pgsql-performance


Hi,
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.

Thanks for your help.
-- 
View this message in context: http://postgresql.1045698.n5.nabble.com/postgresql-statements-are-waiting-tp3285939p3285939.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: postgresql statements are waiting
@ 2010-11-30 16:52  Kevin Grittner <Kevin.Grittner@wicourts.gov>
  parent: bakkiya <bakkiya@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Kevin Grittner @ 2010-11-30 16:52 UTC (permalink / raw)
  To: bakkiya <bakkiya@gmail.com>; pgsql-performance

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: postgresql statements are waiting
@ 2010-11-30 16:54  Scott Marlowe <scott.marlowe@gmail.com>
  parent: bakkiya <bakkiya@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Scott Marlowe @ 2010-11-30 16:54 UTC (permalink / raw)
  To: bakkiya <bakkiya@gmail.com>; +Cc: pgsql-performance

On Tue, Nov 30, 2010 at 4:38 AM, bakkiya <bakkiya@gmail.com> wrote:
>
> Hi,
> 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.

http://wiki.postgresql.org/wiki/Lock_Monitoring



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2010-11-30 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-30 11:38 postgresql statements are waiting bakkiya <bakkiya@gmail.com>
2010-11-30 16:52 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
2010-11-30 16:54 ` Scott Marlowe <scott.marlowe@gmail.com>

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