Обсуждение: How can I read display message from a C function

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

How can I read display message from a C function

От
"Fay Du"
Дата:

Hi All:

    I would like to put some message in my C function ( myTestFunction). Currently, I want to see time for each function call inside myTestFunction. The output to the screen commands are in myTestFunction. myTestFunction is called from postgresql. How can I see the messages? Thanks in advance.

 

Fay

Re: How can I read display message from a C function

От
Markus Schaber
Дата:
Hi, Fay,

Fay Du wrote:

>     I would like to put some message in my C function ( myTestFunction).
> Currently, I want to see time for each function call inside
> myTestFunction. The output to the screen commands are in myTestFunction.
> myTestFunction is called from postgresql. How can I see the messages?

Hmm, would statement logging help you?

If not, you could use elog(NOTICE, "message with time");

HTH,
Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org