Hi. I have an automated script that essentially feeds a long sequence of SQL statements to psql, as a single transaction. For debugging purposes, I would like to insert the equivalent of print statements (to write messages to stdout, stderr, or maybe some pre-specified log file) at various points in this sequence. How is this done?