Thread: Process- or SessionID with ECPG

Process- or SessionID with ECPG

From
Leif Jensen
Date:
Hi guys,

   I have an ECPG based program and I would very much like to get either the process id of the backend or the session
idfor debugging purposes. Is there a way to call PQbackendPID() directly from my program (I suppose that will require
gettinghold of the PGconn from "within" ECPG?) or some other way to interrogate the ECPG system ? 

   My program is multi-threaded.

 Leif