How to enable logging of all SQL executed by PostgreSQL 8.3?
Edited (more info) I changed these lines :
log_directory = 'pg_log'
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
log_statement = 'all'
And restart PostgreSQL service... but no log was created... I'm using Windows Server 2003.
Any ideas?
Set
log_statement
toall
:Error Reporting and Logging - log_statement
+1 to above answers. I use following config
You also need add these lines in PostgreSQL and restart the server: