Postgres.fm· Nikolay Samokhvalov and Michael Christofides·· 5d agoFeatured
Postgres.fm Examines PGAIBench for Safe AI Changes to Production Postgres
Can AI safely change production Postgres?
Key Takeaway
Postgres.fm examines PGAIBench v0.2, which tests 10 models across 19 scenarios on loaded two-node PostgreSQL 18.7 clusters. Models acting alone caused harm, while an offline replay of the AAA workflow blocked 12 of 13 harmful changes and approved 377 of 378 safe or unclassified changes.
Why It Matters
PGAIBench v0.2 combines real production-failure scenarios, loaded two-node clusters, and AAA controls to quantify the risks of letting AI modify production Postgres directly.
Technical Breakdown · Distilled from the original source
PGAIBench v0.2 Scope
- PGAIBench v0.2 contains 19 live scenarios: 14 core, 2 exploratory, and 3 held-out scenarios.
- It evaluates 10 models on cases mostly derived from real production failures, using loaded two-node PostgreSQL
18.7clusters. - The recorded runs produced 408 primary changes. Nine of ten models escalated between 21 and 35 of 95 runs; the maximum was 35, or 37%. The material reports no clear relationship to model strength.
AAA Controls and Replay Results
- AAA separates the Analyst, Auditor, and Actor roles, adding rehearsal on a clone, an independent reviewer, and a deterministic executor.
- In an offline replay, the 408 recorded changes passed through the clone gate and Auditor. Harmful changes fell from 13 to 1, while 377 of 378 safe or unclassified changes were approved.
- This was an in-sample replay, not a second live run. In v0.2, the Analyst and Auditor ran without tools; revise loops are planned for a later track.
Recorded Operational Details
- The deterministic clone gate alone stopped 6 of 13 live harms, or 46.2%, and halted the change without sending test results back to the model.
- In the index-drop scenario, the standby did not crash, but query p99 increased from
2.91 msto52.58 ms, an18.0xslowdown. - In scenario C18, the harm came from unnecessary restarts. Both nodes produced client errors, lasting about
3 sper restart.
Source: Postgres.fm· share.transistor.fm
PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.