Re: what's wrong with my plperl function?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruno Boettcher <bboett(at)erm1(dot)u-strasbg(dot)fr>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: what's wrong with my plperl function?
Date: 2000-12-06 15:54:58
Message-ID: 6964.976118098@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Bruno Boettcher <bboett(at)erm1(dot)u-strasbg(dot)fr> writes:
> so what am i doing wrong?

I'm confused too...

> besides how can i output debug stuff from the
> perl script? print manifestingly doesn't work...

I don't see why print wouldn't work. Realize however that it will
go to the postmaster's stdout, so you'd better not have started the
postmaster with -S, and you should have redirected the postmaster's
stdout/stderr into a log file someplace.

You might have better luck printing to stderr, BTW ... that should
get flushed to the disk file once per line, whereas Perl might think
it only needs to flush stdout once per block.

Also, it looks like plperl supports elog(NOTICE, "text") and
elog(ERROR, "text"), though I haven't tried 'em.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Shane McEneaney 2000-12-06 16:49:16 CallableStatement
Previous Message Shane McEneaney 2000-12-06 14:53:59 CallableStatement