Re: How to map columns in pg_stat_activity to windows PID

From: Dot Yet <dot(dot)yet(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to map columns in pg_stat_activity to windows PID
Date: 2009-04-25 04:20:08
Message-ID: 93bc4af40904242120i789481cdu21c54ed8e9bd3315@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

i wonder if its threads rather than individual processes.

2009/4/24 chen shan <chenshan_1999(at)yahoo(dot)com>

>
> Hello,
>
> Postgresql 8.3.2 on Windows server 2003 R2 standard
>
> I have a client program connecting to postgresql
> database.
>
> The purpose is to find its session information in the
> pg_stat_activity table.
>
> But the PID value from the windows' task manager
> doesn't equal to any value in the output of
> select * from pg_stat_activity;
>
> For example, the windows task manager shows PID = 2760
> but the procpid column shows: 2820
> (I idenfied it by the username/databasename/tcp port
> number)
>
> Appreciate your inputs!
>
>
> __________________________________________________
> 赶快注册雅虎超大容量免费邮箱?
> http://cn.mail.yahoo.com
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Mayer 2009-04-25 05:26:29 Re: Updating a very large table
Previous Message Hans Peter Ertz 2009-04-24 23:17:04 Re: Problem with function-arguments