Is there a way to add a detail message in a warning with pl/Python?

Поиск
Список
Период
Сортировка
От DANIEL CRISTIAN CRUZ
Тема Is there a way to add a detail message in a warning with pl/Python?
Дата
Msg-id 5107C8A6.6080202@sc.senai.br
обсуждение исходный текст
Ответы Re: Is there a way to add a detail message in a warning with pl/Python?  (Adrian Klaver <adrian.klaver@gmail.com>)
Re: Is there a way to add a detail message in a warning with pl/Python?  (Stuart Bishop <stuart@stuartbishop.net>)
Список pgsql-general
Hello,

I build a function and added some warnings where the id of the affected
rows are inside it; and would be nice to put it into a detail, not in
the message, since pgbadger can group it and I can see clearly what is
wrong in my cluster.

I read the manual and tried something with no success:

plpy.warning('test', 'detail') -> output both values
plpy.warning({'message': 'test', 'detail': 'detail'}) -> output the dict
plpy.warning('test', detail='detail') -> fail

Am I missing something?

I would read the code, but I had no time right now...

Thanks,
--
Daniel Cristian Cruz
Unidade de Tecnologia da Informação

Sistema FIESC
Rod. Admar Gonzaga, 2765 - Itacorubi - 88034-001 - Florianópolis - SC
Fone (48) 3239-1422 -  e-mail: daniel.cruz@sc.senai.br
site: http://www.sistemafiesc.org.br


Вложения

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

Предыдущее
От: yatler sahri
Дата:
Сообщение:
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Is there a way to add a detail message in a warning with pl/Python?