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

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: Fay Du <fay(dot)du(at)versaterm(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How can I read display message from a C function
Date: 2006-05-05 08:17:38
Message-ID: 445B0A22.4010608@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Kashmira Patel (kupatel) 2006-05-05 21:37:13 Returning String as Integer
Previous Message Catalin Pitis 2006-05-04 19:30:18 Re: Connecting to Postgres from other machines (outside localhost)