Process- or SessionID with ECPG

Started by Leif Jensenalmost 16 years ago1 messagesgeneral
Jump to latest
#1Leif Jensen
leif@crysberg.dk

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 id for debugging purposes. Is there a way to call PQbackendPID() directly from my program (I suppose that will require getting hold of the PGconn from "within" ECPG?) or some other way to interrogate the ECPG system ?

My program is multi-threaded.

Leif