Reputation: 41685
I followed instruction on http://pydanny-event-notes.readthedocs.org/en/latest/DjangoConEurope2012/10-steps-to-better-postgresql-performance.html
it says to set log_directory = pg_log
where's that directory in ubuntu? :(
Upvotes: 11
Views: 22582
Reputation: 121644
The query gives you the actual log directory in any operating system.
select format('%s/%s',
current_setting('data_directory'),
current_setting('log_directory'));
Upvotes: 12
Reputation: 1703
Under postgres data directory something like /var/lib/postgresql/9.3/main/pg_log
Upvotes: 16