From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruno Boettcher <bboett@erm1.u-strasbg.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: what's wrong with my plperl function?
Date: Wed, 06 Dec 2000 10:54:58 -0500
Message-ID: <6964.976118098@sss.pgh.pa.us> (raw)
In-Reply-To: <20001206130158.A7713@erm1.u-strasbg.fr>
References: <20001206130158.A7713@erm1.u-strasbg.fr>
Bruno Boettcher <bboett@erm1.u-strasbg.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, bboett@erm1.u-strasbg.fr
Subject: Re: what's wrong with my plperl function?
In-Reply-To: <6964.976118098@sss.pgh.pa.us>
References: <20001206130158.A7713@erm1.u-strasbg.fr> <6964.976118098@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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