superfly/corrosion

Bulletproof postgres transaction handling

開放

#502 建立於 2026年8月7日

 (0 則留言) (0 個反應) (0 位負責人)Rust (83 個分叉)auto 404
buggood first issue

倉庫指標

星標
 (1,817 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南