OSDN Git Service

On win32, there is currently no way to get the equivalent function of
authorBruce Momjian <bruce@momjian.us>
Thu, 2 Dec 2004 22:28:22 +0000 (22:28 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 2 Dec 2004 22:28:22 +0000 (22:28 +0000)
commit917c8bb407ef586c8a0c0387638c61ebe2f1aed5
treee0544106457cecfd63983ed7689ba73938830dd0
parent1646586271ce980427ecce700aee48bbab974839
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
src/backend/utils/misc/ps_status.c