superfly/corrosion

Bulletproof postgres transaction handling

Offen

#502 geöffnet am 07.08.2026

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (83 Forks)auto 404
buggood first issue

Repository-Metriken

Stars
 (1.817 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide