Process- or SessionID with ECPG

From: Leif Jensen <leif(at)crysberg(dot)dk>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Process- or SessionID with ECPG
Date: 2010-07-01 15:05:07
Message-ID: 24991327.13496.1277996707832.JavaMail.root@quick
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2010-07-01 15:12:17 Re: Prevent characters not transposable to LATIN9
Previous Message Arnaud Lesauvage 2010-07-01 14:53:51 Re: Prevent characters not transposable to LATIN9