"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