Re: SQL call to get pid of current connection

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David Parker" <dparker(at)tazznetworks(dot)com>
Cc: "postgres general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: SQL call to get pid of current connection
Date: 2005-06-03 01:03:12
Message-ID: 29425.1117760592@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"David Parker" <dparker(at)tazznetworks(dot)com> writes:
> Is there a function call that will return the pid of the postgres
> process associated with the current client connection?

libpq makes this available as PQbackendPID(). Dunno about other
client libraries.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Parker 2005-06-03 01:43:20 Re: SQL call to get pid of current connection
Previous Message Greg Sabino Mullane 2005-06-03 00:57:02 Re: PostgreSQL vs. InnoDB performance