I would like to take a look to postgresql log files to see what my app tells him but I can't find them.
Any ideas?
I would like to take a look to postgresql log files to see what my app tells him but I can't find them.
Any ideas?
Just ask your database:
SELECT 
    * 
FROM 
    pg_settings 
WHERE 
    category IN( 'Reporting and Logging / Where to Log' , 'File Locations')
ORDER BY 
    category,
    name;
In my case, it's in "/Library/PostgreSQL/8.4/data/pg_log"
On OS X, if you're using the EnterpriseDB installation of PostgreSQL, your log files will be in /Library/PostgreSQL/8.4/data/pg_log
Of course, you'll want to substitute 8.4 for whichever version number you're running.