I have Postgres configuration with LOGFILE defined in the bash script /etc/rc.d/init.d/postgresql
by the option -l ${LOGFILE}
Log gives the following output :
2013-06-07 11:28:18 EDT rentgrowLOG: statement: select count(*) from (select * from results limit 1) test
2013-06-07 11:28:18 EDT rentgrowLOG: duration: 0.333 ms
This output is not readable by pgfouine.php – the error is: “pgFouine did not find any valid PostgreSQL log line in your log file:”
I found also that my changes in postgresql.conf do not affect the output at all.
How prepare a Postgres log file readable by pgfouine.php?
That's probably the source of the problem. Your
log_line_prefix
is being ignored. Otherwise, with the prefix set to'%t [%p]: [%l-1] '
as recommended by pgFouine, the log entries would look like this:As to the question: why are the changes to
postgresql.conf
being ignored? Some typical reasons would be:SIGHUP
to the postmaster, either directly or through thepg_ctl
orservice
commands.