Statement logging in PostgreSQL 12.1. Has something changed from earlier versions?
问题 I'm debugging some code that uses SQLAlchemy to interact with a PostgreSQL database. The errors I'm seeing suggest that PostgreSQL is receiving my SQL statements, but perhaps not in the order I intended. So, I thought I'd enable statement logging to see what PostgreSQL is actually getting. I did that a few years ago, using the instructions in How to log PostgreSQL queries? and it worked just fine. (It must have, because I upvoted that question and the accepted answer.) However, that was