>>vi que você não leu o log na integra pois a sua "Solução 2" está 
>>incompleta. O log_line_prefix precisa ser, no mínimo:
>>'%t [%p]: [%l-1] '
>>mas você pode adicionar seu usuário e versão:
>>'%t [%p]: [%l-1] user=%u,db=%d '


Jovem Guedes esse formato [%p]: [%l-1] é somente se a saída do log fosse
direcionada a stderr e no caso esta indo para o syslog
if you use stderr, check that your log_line_prefix is of the form  '%t
[%p]: [%l-1] '.




On Thu, 2009-01-08 at 09:14 -0200, Dickson S. Guedes wrote:
> Junin escreveu:
> > Galerinha,
> >
> > Segue abaixo todos meus procedimentos e o erro final...
> >
> > (...)
> > 7 - OLHA O ERRO
> >
> > erro:
> >
> > r...@es605-444:/var/log/postgresql# 
> > /home/junin-dba/pgfouine-1.0/pgfouine.php -file 
> > postgresql-8.3-main.log  > /home/junin-dba/Área\ de\ 
> > Trabalho/somefile.html
> > pgFouine did not find any valid PostgreSQL log line in your log file:
> > * check that PostgreSQL uses an english locale for logging 
> > (lc_messages in your postgresql.conf),
> > * check that you use the -logtype option (syslog, stderr) according to 
> > your log file,
> > * if you use syslog and log_line_prefix, check that your 
> > log_line_prefix has a trailing space,
> > * if you use stderr, check that your log_line_prefix is of the form 
> > '%t [%p]: [%l-1] '.
> > If you think your log file and your options are correct, please 
> > contact the author (gsmet on #postgre...@freenode or guillaume-pg at 
> > smet dot org).
> 
> O log cantou a bola, mas vou falar depois.
> 
> > Solucao 1 - mudar para ingles no postgresql.conf o parametro 
> > lc_messages //fiz e nada;
> 
> Vi que você leu o log. É isso, tem que estar em inglês ali senão as 
> regex do pgfouine não encontrarão nada.
> 
> > Solucao 2 - verificar o log_line_prefix = 'user=%u,db=%d '#tem o 
> > espaço no final...
> 
> Vi que você não leu o log na integra pois a sua "Solução 2" está 
> incompleta. O log_line_prefix precisa ser, no mínimo:
> 
> '%t [%p]: [%l-1] '
> 
> mas você pode adicionar seu usuário e versão:
> 
> '%t [%p]: [%l-1] user=%u,db=%d '
> 
> 
> Tente lá e nos comunique.
> 

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a