Re: plpython plpy.log/warning minor aesthetic bug

From: elein <elein(at)norcov(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org, elein(at)norcov(dot)com
Subject: Re: plpython plpy.log/warning minor aesthetic bug
Date: 2002-09-23 04:14:23
Message-ID: 200209230414.g8N4E4Bd567252@pimout1-ext.prodigy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


That is very odd.

I wonder if it is whacky on other Linux systems or
if it is something with SuSe.

Or! possibly it is that I am using an older Python. python 2.1.
That is probably it. If so, nevermind. It is very minor
anyway.

elein
elein(at)norcov(dot)com

On Sunday 22 September 2002 18:14, you wrote:
> Looks fine here on BSD/OS, in server logs:
>
> LOG: statement: select nested_call_one('pass this along');
>
> ---------------------------------------------------------------------------
>
> elein wrote:
> > Postgres7.3b1, Linux Suse 7.3
> >
> > plpy.log() and plpy.warning() leave parentheses and a trailing
> > comma on messages in psql and in the log. I did not test
> > the other plpy interfaces to elog. This is what they look like:
> > WARNING: ('This is a warning!',)
> > LOG: ('This is a log message.',)
> >
> > The parens are OK, but the trailing comma bothers my
> > brain parser.
> >
> >
> > ------warnme.sql----
> >
> > drop function warnme():
> > create function warnme()
> > returns text as
> > '
> > plpy.warning( "This is a warning!" )
> > return "warning"
> >
> > ' LANGUAGE 'plpython';
> >
> > drop function logme();
> > create function logme()
> > returns text as
> > '
> > plpy.log( "This is a log message." )
> > return "log message"
> >
> > ' LANGUAGE 'plpython';
> >
> > select warnme();
> > select logme();
> >
> > --
> > -- Log file results:
> > --
> > -- WARNING: ('This is a warning!',)
> > -- LOG: ('This is a log message.',)
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > message can get through to the mailing list cleanly

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2002-09-23 04:20:16 Re: plpython plpy.log/warning minor aesthetic bug
Previous Message Bruce Momjian 2002-09-23 01:45:37 Re: 7.3 Doc Bug in plpython