Files
synapse/synapse
Matthew Hodgson 40bed9f2be fix txns for postgres
The real issue: psycopg2 operates in "implicit transaction" mode by default. Every query — even a simple SELECT — starts a transaction. So after runWithConnection runs a SELECT, the connection is "in a transaction" even though nothing needs committing. Twisted's
  ConnectionPool.runWithConnection handled this by calling rollback() after each runWithConnection call to close the implicit transaction.

  The fix should be: commit/rollback after runWithConnection completes (not before the next call), matching Twisted's behavior:
2026-03-24 22:04:50 -04:00
..
2026-03-24 21:54:15 -04:00
2026-03-24 20:45:45 -04:00
2026-03-24 19:51:58 -04:00
2026-03-24 22:04:50 -04:00
2026-03-24 21:10:18 -04:00