Re: identify database process given client process

From: "Joey K(dot)" <pguser(at)gmail(dot)com>
To: hogcia <hogcia(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: identify database process given client process
Date: 2008-03-17 18:53:56
Message-ID: 467669b30803171153o688dcc8ag84bd224efc47324@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Mar 17, 2008 at 6:58 AM, hogcia <hogcia(at)gmail(dot)com> wrote:

> Hi,
> I have to find a Postgres database process pid (or other
> identification) for a given client process pid. Or client processes
> for a database process. How are they connected? I was suggested maybe
> netstat could give me the answer and I think those are two pf_unix
> processes. But maybe there are some PostgreSQL functions that do this?
> How should I approach this topic?
> Thanks in advance,
>

Try

select pg_stat_activity;

Joey

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Teodor Sigaev 2008-03-17 19:00:54 Re: Fragments in tsearch2 headline
Previous Message Bruce Momjian 2008-03-17 18:27:44 Re: Fragments in tsearch2 headline