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

Поиск
Список
Период
Сортировка
От DANIEL CRISTIAN CRUZ
Тема Re: Is there a way to add a detail message in a warning with pl/Python?
Дата
Msg-id 5108FAD4.1060405@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>)
Список pgsql-general

Em 29/01/2013 17:30, Adrian Klaver escreveu:
> Why not:
>
> DO $$
>     plpy.warning('test, detail')
> $$ LANGUAGE plpythonu;
>
> In log:
>
> WARNING:  test, detail
>

Because pgBadger doesn't use it this way:

http://dalibo.github.com/pgbadger/example.html#NormalizedErrorsMostFrequentReport

I read the code yesterday, and didn't find how to get a detail through
it. Maybe my C knowledge is somewhat broken...

--
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 по дате отправления:

Предыдущее
От: wolfgang@noten5.maas-noten.de
Дата:
Сообщение: Optimizing query?
Следующее
От: Neil Worden
Дата:
Сообщение: naming of wal-archives