I'm running an application on Heroku that uses postgres.
All of my SQL statements are coming through in my logs; I'd like to turn this off.
They look like this:
Dec 03 05:41:36 ti-core app/postgres: [1566-2] #011FROM alias
Dec 03 05:41:36 ti-core app/postgres: [1566-3] #011WHERE alias.nid = E'10.5334/sta.at' AND alias.namespace = E'doi'
Dec 03 05:41:36 ti-core app/postgres: [1566-4] #011 LIMIT 1
I can't figure out where I've set this level of heroku postgres debugging and where to turn it down a notch. Thanks!
Presumably it comes from
log_statementbeing set toall.To reset it:
log_statementin postgresql.conf or set it to'none'ALTER DATABASE foo SET log_statement=default;ALTER USER foo SET log_statement=default;If that doesn't help, check
log_min_duration_statement.Relevant documentation chapter: Error Reporting and Logging.