Обсуждение: Process- or SessionID with ECPG

Поиск
Список
Период
Сортировка

Process- or SessionID with ECPG

От
Leif Jensen
Дата:
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