Function | activity_cols | Adapt pg_stat_activity column names for the current DB server. |
Function | retry_transaction | Decorator used to retry database transaction failures. |
Function | read_transaction | Decorator used to run the function inside a read only transaction. |
Function | write_transaction | Decorator used to run the function inside a write transaction. |
The function being decorated should not have side effects outside of the transaction.