Re: Bug #958: plperl notice server log - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #958: plperl notice server log
Date
Msg-id 24569.1051596557@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bug #958: plperl notice server log  ("A.Bhuvaneswaran" <bhuvansql@myrealbox.com>)
Responses Re: Bug #958: plperl notice server log
List pgsql-bugs
"A.Bhuvaneswaran" <bhuvansql@myrealbox.com> writes:
> create or replace function perl_test (text, text)
> returns int as '

>   my ($A1, $A2) = @_;
>   print "Argument 1 :$A1:\n";
>   print "Argument 2 :$A2:\n";
>   return 1;
> '
> language 'plperl';

Printing to stdout is not the defined way to send a notice to a Postgres
client.  Use elog:
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/plperl-database.html

            regards, tom lane

pgsql-bugs by date:

Previous
From: "A.Bhuvaneswaran"
Date:
Subject: Re: Bug #958: plperl notice server log
Next
From: "A.Bhuvaneswaran"
Date:
Subject: Re: Bug #958: plperl notice server log