Postgres Ops Techniques Logging Enabling Query Logs In your data/postgresql.conf file, change the log_statement setting to ‘all’. Source