Skip site navigation (1) Skip section navigation (2)

Re: Fully replacing ps_status (was Re: [COMMITTERS] pgsql:

From: Mark Kirkwood <markir(at)paradise(dot)net(dot)nz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Fully replacing ps_status (was Re: [COMMITTERS] pgsql:
Date: 2006-06-27 23:48:12
Message-ID: 44A1C3BC.6080100@paradise.net.nz (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Tom Lane wrote:
> momjian(at)postgresql(dot)org (Bruce Momjian) writes:
>> Add GUC update_process_title to control whether 'ps' display is updated
>> for every command, default to on.
> 
> It strikes me that the ps_status support provides one important bit of
> information that is currently hard to get elsewhere; specifically, the
> "waiting" flag that gets added while blocked on a lock.  You can find
> out if a process is blocked by looking in pg_locks, but that's a fairly
> expensive probe in itself and then you have to join to pg_stat_activity
> to make any sense of it.  I wonder if we should add a "waiting" boolean
> column to pg_stat_activity?  Given the new implementation of
> pg_stat_activity, updating such a flag would be pretty cheap.
> 
>

Funny - today I was just thinking how useful that would be!

Cheers

Mark

In response to

pgsql-hackers by date

Next:From: Stephen FrostDate: 2006-06-28 01:43:30
Subject: Re: Fully replacing ps_status (was Re: [COMMITTERS] pgsql: Add GUC update_process_title to control whether 'ps' display is)
Previous:From: Bruce MomjianDate: 2006-06-27 22:44:46
Subject: Re: Fully replacing ps_status (was Re: [COMMITTERS] pgsql:

pgsql-committers by date

Next:From: Stephen FrostDate: 2006-06-28 01:43:30
Subject: Re: Fully replacing ps_status (was Re: [COMMITTERS] pgsql: Add GUC update_process_title to control whether 'ps' display is)
Previous:From: Tom LaneDate: 2006-06-27 23:25:28
Subject: pgsql: Remove embedded newline in string literal --- seems to make newer

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group