Обсуждение: Postgres 9.0 Hiding CONTEXT string in Logs

Поиск
Список
Период
Сортировка

Postgres 9.0 Hiding CONTEXT string in Logs

От
Alex -
Дата:
Hi,
I occasionally output information from my PL/Perl functions to show a progres or a debug info like this
 
elog(NOTICE, "Table some_table analyzed");
 
which generated the
 
NOTICE:  Table some_table analyzed
 
however since upgrading to version 9.0 I also get this annoying string
 
CONTEXT:  PL/Perl function "func_some_fun"
 
Is there any way to suppress this as I don't really need it?
 
 
Thanks
Alex

 

Re: Postgres 9.0 Hiding CONTEXT string in Logs

От
Alex -
Дата:
No reply... I guess its not possible then to switch that off.
 
 
Hi,
I occasionally output information from my PL/Perl functions to show a progres or a debug info like this
 
elog(NOTICE, "Table some_table analyzed");
 
which generated the
 
NOTICE:  Table some_table analyzed
 
however since upgrading to version 9.0 I also get this annoying string
 
CONTEXT:  PL/Perl function "func_some_fun"
 
Is there any way to suppress this as I don't really need it?
 
 
Thanks
Alex

 

Re: Postgres 9.0 Hiding CONTEXT string in Logs

От
Merlin Moncure
Дата:
On Mon, Dec 20, 2010 at 10:04 AM, Alex - <aintokyo@hotmail.com> wrote:
> No reply... I guess its not possible then to switch that off.
>
>
> Hi,
> I occasionally output information from my PL/Perl functions to show a
> progres or a debug info like this
>
> elog(NOTICE, "Table some_table analyzed");
>
> which generated the
>
> NOTICE:  Table some_table analyzed
>
> however since upgrading to version 9.0 I also get this annoying string
>
> CONTEXT:  PL/Perl function "func_some_fun"
>
> Is there any way to suppress this as I don't really need it?

see: log_error_verbosity
http://www.postgresql.org/docs/current/static/runtime-config-logging.html

merlin