Re: Is there a way to add a detail message in a warning with pl/Python? - Mailing list pgsql-general

From DANIEL CRISTIAN CRUZ
Subject Re: Is there a way to add a detail message in a warning with pl/Python?
Date
Msg-id 5108FAD4.1060405@sc.senai.br
Whole thread Raw
In response to Re: Is there a way to add a detail message in a warning with pl/Python?  (Adrian Klaver <adrian.klaver@gmail.com>)
List 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


Attachment

pgsql-general by date:

Previous
From: wolfgang@noten5.maas-noten.de
Date:
Subject: Optimizing query?
Next
From: Neil Worden
Date:
Subject: naming of wal-archives