Re: how to access backend pid from libpq ?

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: how to access backend pid from libpq ?
Date: 2000-10-24 11:11:07
Message-ID: 39F56E4B.743BE231@tm.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message devik 2000-10-24 11:52:38 Two-phase commit
Previous Message Hannu Krosing 2000-10-24 10:57:32 how to access backend pid from libpq ?