how to log the SQL statements executed in Postgresql