Report question

Question: How to check for pending operations in a PostgreSQL transaction