Byzantine-fault tolerant PostgreSQL replicas detect and recover corruption quickly
The proposed BFT replicated state machine can efficiently detect and repair database corruption
Systems arXiv 12 May 2026 Defense Prototype evidence
Published as “PROTECT-DB: Protecting Data using Replicated State Machines: Efficient Corruption Detection & Recovery”
Why it matters
The approach enables practical, low-latency detection and repair of Byzantine data corruption in SQL databases, making BFT replication viable for real-world applications.
Summary
PROTECT-DB can process over 2500 YCSB transactions per second on low-end hardware and recover corrupted data in a few seconds using Merkle-tree-based snapshot diffing. The system builds on a BFT replicated state machine with deterministic execution (Aria) and adds passive and active corruption detection schemes. Evaluation shows only ≤10 % overhead versus native PostgreSQL, but Raft and Kafka introduce noticeable bottlenecks that limit scalability. The paper provides a full implementation on PostgreSQL and reports linear recovery time as the number of corrupted leaf nodes grows. Some details of the threat-model and long-term deployment are not fully described.
What they found 1
- Corruption recovery completes in a few seconds and scales linearly with number of corrupted leaf nodes
“the recovery time is only a few seconds, and increases linearly with number of leaf nodes modified.”
Caveats 4
- Both Kafka and Raft add significant overheads on system throughput, with Raft being the current bottleneck
- quote: "Both Kafka and Raft require multiple rounds of messaging, which appears to be the bottleneck. Further, using Raft reduces the throughout compared to using Kafka without consensus, indicating that Raft is currently the bottleneck."
- Both Raft consensus and Kafka add significant overheads on system throughput.
- Optimizing these components to improve throughput is an area of ongoing work.
What’s new here 4
- Passive and active corruption detection schemes using per-relation Merkle trees
- Concurrent snapshot-based recovery that copies only diverged tuples
- Integration of deterministic transaction execution (Aria) with BFT replication for full SQL databases
- Implementation on PostgreSQL with minimal code changes, including Raft (Ratis) and Kafka integration