pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How can I read display message from a C function
2+ messages / 2 participants
[nested] [flat]

* How can I read display message from a C function
@ 2006-05-04 15:31  Fay Du <fay.du@versaterm.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Fay Du @ 2006-05-04 15:31 UTC (permalink / raw)
  To: pgsql-sql

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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How can I read display message from a C function
@ 2006-05-05 08:17  Markus Schaber <schabi@logix-tt.com>
  parent: Fay Du <fay.du@versaterm.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Markus Schaber @ 2006-05-05 08:17 UTC (permalink / raw)
  To: Fay Du <fay.du@versaterm.com>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-05-05 08:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04 15:31 How can I read display message from a C function Fay Du <fay.du@versaterm.com>
2006-05-05 08:17 ` Markus Schaber <schabi@logix-tt.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox