Re: SQL call to get pid of current connection - Mailing list pgsql-general

From Tom Lane
Subject Re: SQL call to get pid of current connection
Date
Msg-id 29425.1117760592@sss.pgh.pa.us
Whole thread Raw
In response to SQL call to get pid of current connection  ("David Parker" <dparker@tazznetworks.com>)
List pgsql-general
"David Parker" <dparker@tazznetworks.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

pgsql-general by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: PostgreSQL vs. InnoDB performance
Next
From: "David Parker"
Date:
Subject: Re: SQL call to get pid of current connection