Pessoal instalei aqui a ferramenta pgFouine 1.2.1 usando rpm,
configurei o postgresql.conf como pede o tutorial:
http://pgfouine.projects.postgresql.org/tutorial.html

algue já usou essa ferramenta? Ela funciona no 9.0 ?

gerando relatório:

onde encontro os logs? são os logs la do dir pg_log?

exemplo do site: $ pgfouine.php -file
*logs_pgbench_20051211063633.log* > sample_default.html
<http://pgfouine.projects.postgresql.org/reports/sample_default.html>

parametros de configuração:

log_destination = 'syslog' redirect_stderr = off #*o parametro redirect não
pode setar também pq o mesmo não existe no postgres *silent_mode = on
To log queries slower than *n* milliseconds:

log_min_duration_statement = *n   #aqui setei com "0" pq com "n" o
banco não subiu*
log_duration = off
log_statement = 'none'

To log every query executed, set *log_min_duration_statement* to 0. Set it
to -1 to disable query logging.

Then edit your /etc/syslog.conf to set up a PostgreSQL facility:

local0.*                -/var/log/pgsql

You should also ignore PostgreSQL facility for the default log file
otherwise you will log the queries twice:

*.info;mail.none;authpriv.none;cron.none*;local0.none*
/var/log/messages


Desde já Obrigado.....pessoal....


-- 
--
Hélio José
(61) 99840139
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a