Re: meaning of "waiting" column in pg_stat_activity?

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: chris(at)chriscurvey(dot)com
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: meaning of "waiting" column in pg_stat_activity?
Date: 2012-07-23 20:46:54
Message-ID: 1343076414.2039.22.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2012-07-23 at 16:13 -0400, Chris Curvey wrote:
> Just wondering...if a query is "waiting", what is it waiting for?

Locks.

> Is
> this only for locks, or can it be for disk, or a memory buffer?

Only locks.

> (If
> there is a description of the meaning of things in pg_stat_activity
> and it's relatives, I'd love a pointer, 'cause I can't seem to find
> it.)

There isn't much at the moment. 9.2 docs will be better in that regard.
See
http://www.postgresql.org/docs/9.2/static/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW for example (but be careful that some columns of pg_stat_activity change in 9.2).

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2012-07-24 00:48:51 Re: Odd corruption issue reported on dba.stackexchange.com, need advice
Previous Message Chris Curvey 2012-07-23 20:13:08 meaning of "waiting" column in pg_stat_activity?