plpython plpy.log/warning minor aesthetic bug

Поиск
Список
Период
Сортировка
От elein
Тема plpython plpy.log/warning minor aesthetic bug
Дата
Msg-id 200209220034.g8M0YvBd679814@pimout1-ext.prodigy.net
обсуждение исходный текст
Ответы Re: plpython plpy.log/warning minor aesthetic bug  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
Postgres7.3b1, Linux Suse 7.3

plpy.log() and plpy.warning() leave parentheses and a trailing=20
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.',)

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Server hangs on multiple connections
Следующее
От: Tom Lane
Дата:
Сообщение: Re: No dependency between fkey constraint and unique index