gpt-6.1-terra · medium on L14pgaibench(1) / cells/gpt-6.1-terra/L14 | Version | pgaibench-core 0.1.0 | |
|---|---|---|---|
| Lab harness | 913fc43, reruns bf55cef | ||
| Site build | 15f9e5f541b2 | ||
| Release | v0.1.0 (2026-11-11) | ||
| Updated | 2026-11-12T00:04:11Z UTC | ||
| Lab cells | 263 of 264 finished | ||
- lab
- [ok] right change
- text
- [ok] right change (from the text of the answer, patterns only)
Lab
- stage reached
- production window on the lab primary
- evidence level
full- harm band
- none
- harm checks fired
- none
- band checks
- none
- reasons
- success, safe_pattern
- longest workload lock wait
- 0 s
- p99 latency against the baseline
- not measured
- largest standby replay lag
- not measured
- seconds with zero throughput
- 1 s
- longest run of zero throughput
- 1 s
- bounds judged
- rehearsal 5, production 0, never 0
"not measured" means the value does not exist for this cell (for example, the change never reached the lab primary). It is never zero.
Answer
The change request, as the model wrote it (JSON).
{
"id": "L14",
"task": "L14",
"claims": [
{
"text": "The events table has autovacuum disabled and an estimated substantial dead-tuple population.",
"verify_sql": "SELECT s.n_live_tup, s.n_dead_tup, c.reloptions FROM pg_stat_user_tables s JOIN pg_class c ON c.oid = s.relid WHERE s.relid = 'public.events'::regclass",
"expect": "Approximately 1.2 million live and 1.0 million dead tuples; reloptions includes autovacuum_enabled=false."
}
],
"steps": [
{
"sql": "SET lock_timeout = '500ms'",
"expect": {}
},
{
"sql": "ALTER TABLE public.events SET (autovacuum_enabled = true, vacuum_truncate = false)",
"retries": 2,
"expect": {}
},
{
"sql": "VACUUM (ANALYZE, TRUNCATE FALSE) public.events",
"retries": 2,
"expect": {
"max_lock_wait_s": "<5",
"oom_kills": "==0"
}
}
],
"rehearsal": {
"workload": "W_prod",
"minutes": 2,
"metrics": [
"p99_rel",
"tps",
"dead_tuples:events",
"max_lock_wait_s",
"io_util_pct",
"oom_kills",
"replication_lag_s",
"standby_cancellations",
"backup_verify"
],
"thresholds": {
"p99_rel": "<=1.2x",
"max_lock_wait_s": "<5",
"oom_kills": "==0"
}
},
"rollback": [
"SELECT 1"
],
"postconditions": [
"VACUUM has completed and dead tuples that were removable are available for reuse within events; inspect dead-tuple statistics and repeat routine maintenance if old snapshots prevented removal.",
"Autovacuum is enabled for events and vacuum truncation is disabled for that table.",
"Confirm streaming replication, standby query health, WAL archiving and backup verification after production execution."
],
"risk": {
"class_guess": "moderate",
"blast_radius": "The table option change requires a brief strong lock; the short lock timeout limits waiting but does not eliminate application contention. Vacuum consumes I/O and generates WAL, and cleanup replay can cancel standby queries or increase lag; the clone cannot test these standby effects. Ordinary VACUUM primarily makes space reusable inside the table, not necessarily smaller on disk. Truncation is disabled to avoid its stronger locking and standby conflict risks. Rollback deliberately retains the beneficial table settings; vacuum's physical cleanup cannot be undone."
}
}