pgsql: On win32, there is currently no way to get the equivalent

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: On win32, there is currently no way to get the equivalent
Date: 2004-12-02 22:28:23
Message-ID: 20041202222823.AAC763A58BE@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
On win32, there is currently no way to get the equivalent function of
the "ps" argument list on Unix - meaning that there is no way to
identify for example the stats processors or the bgwriter.

This patch adds this functionality, in a bit of a crufty way. It creates
a kernel Event object with the name of what would be in the title. This
can be viewed using for example Process Explorer.

It's been very handy for me during both debugging and using. I haven't
figured a better way, but perhaps someone has one that's less crufty? If
not, here is at least a working patch :-)

Magnus Hagander

Modified Files:
--------------
pgsql/src/backend/utils/misc:
ps_status.c (r1.21 -> r1.22)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/ps_status.c.diff?r1=1.21&r2=1.22)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2004-12-02 22:37:15 pgsql: Fix for Unicode characters above 0x10000.
Previous Message Bruce Momjian 2004-12-02 22:27:36 Re: pgsql: New Directory