superfly/corrosion

Bulletproof postgres transaction handling

Aperta

#502 aperta il 7 ago 2026

 (0 commenti) (0 reazioni) (0 assegnatari)Rust (83 fork)auto 404
buggood first issue

Metriche repository

Star
 (1817 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

As per https://github.com/superfly/corrosion/pull/176 if an statement within an ongoing postgres transaction errors we should reject all commands other than a ROLLBACK. Currently we only do discard_until_sync on errors so if a transaction fails and the client sends a SYNC message then it can send another failing statement. Also as per the original PR we should error on trying to start an nested transaction.

Guida contributor