I was unable to find the way to access the backend pid from libpq

It is probably saved somewhere as part of BackendKeyData message
but there seems to be no function to access it ?

I'm using a temporary solution (my own 'C' function) but I'd like 
to use the info already received.  

---------------
Hannu

Tue, 24 Oct 2000 13:57:32 +0300
Hannu Krosing <hannu@tm.ee>
how to access backend pid from libpq ?
Hannu Krosing wrote:
> 
> I was unable to find the way to access the backend pid from libpq
> 
> It is probably saved somewhere as part of BackendKeyData message
> but there seems to be no function to access it ?
> 
> I'm using a temporary solution (my own 'C' function) but I'd like
> to use the info already received.

Ok, I found it from the libpq source: PQbackendPID

I still think it could be documented ;)

----------------
Hannu

Tue, 24 Oct 2000 14:11:07 +0300
Hannu Krosing <hannu@tm.ee>
Re: how to access backend pid from libpq ?
Hannu Krosing <hannu@tm.ee> writes:
> I was unable to find the way to access the backend pid from libpq

 extern int      PQbackendPID(const PGconn *conn);

			regards, tom lane

Tue, 24 Oct 2000 11:32:00 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: how to access backend pid from libpq ? 
Hannu Krosing <hannu@tm.ee> writes:
> Ok, I found it from the libpq source: PQbackendPID

> I still think it could be documented ;)

It is.

			regards, tom lane

Tue, 24 Oct 2000 17:23:47 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: how to access backend pid from libpq ? 
Tom Lane wrote:
> 
> Hannu Krosing <hannu@tm.ee> writes:
> > Ok, I found it from the libpq source: PQbackendPID
> 
> > I still think it could be documented ;)
> 
> It is.

Strange how one starts to find things when you are told they are there
;)

I could have sworn that doing grep PQbackendPID over libpq.sgml in fresh 
REL7_0_PATCHES returned zero rows before I posted .

Sorry for panicing.

-----------
Hannu

Wed, 25 Oct 2000 10:29:33 +0300
Hannu Krosing <hannu@tm.ee>
Re: Re: how to access backend pid from libpq ?