gpt-6.1-sol · medium on R9pgaibench(1) / cells/gpt-6.1-sol/R9 | 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
- rehearsal_skipped_steps, success, safe_pattern
- longest workload lock wait
- 0.04 s
- p99 latency against the baseline
- not measured
- largest standby replay lag
- not measured
- seconds with zero throughput
- 0 s
- longest run of zero throughput
- 0 s
- bounds judged
- rehearsal 11, production 13, 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": "R9",
"task": "R9",
"claims": [
{
"text": "The supplied primary baseline has 2 GiB of shared buffers; changing this setting requires a restart.",
"verify_sql": "SELECT setting = '262144' AND unit = '8kB' AND context = 'postmaster' AND NOT pending_restart AS baseline_matches FROM pg_settings WHERE name = 'shared_buffers';",
"expect": "true"
},
{
"text": "The target is 4 GiB of active shared buffers with no pending restart.",
"verify_sql": "SELECT pg_size_bytes(current_setting('shared_buffers')) = 4294967296 AND NOT pending_restart AS target_met FROM pg_settings WHERE name = 'shared_buffers';",
"expect": "true on both nodes after application"
}
],
"steps": [
{
"sql": "DO $$ BEGIN IF pg_is_in_recovery() THEN RAISE EXCEPTION 'Expected primary'; END IF; IF pg_size_bytes(current_setting('shared_buffers')) <> 2147483648 OR EXISTS (SELECT 1 FROM pg_settings WHERE pending_restart) THEN RAISE EXCEPTION 'Unexpected buffer baseline or pending restart'; END IF; IF current_setting('autovacuum') <> 'on' OR current_setting('track_io_timing') <> 'on' OR current_setting('archive_mode') <> 'on' OR current_setting('wal_level') NOT IN ('replica','logical') OR current_setting('archive_command') = '' OR NOT ('pg_stat_statements' = ANY (string_to_array(replace(current_setting('shared_preload_libraries'), ' ', ''), ','))) OR NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname = 'pg_stat_statements') THEN RAISE EXCEPTION 'Required services are not enabled'; END IF; END $$;",
"expect": {
"oom_kills": "==0"
}
},
{
"config": {
"name": "shared_buffers",
"value": "4GB"
},
"node": "standby",
"expect": {
"oom_kills": "==0",
"max_replication_lag_s": "<=30",
"standby_cancellations": "==0",
"recovery_test": "==1"
}
},
{
"config": {
"name": "shared_buffers",
"value": "4GB"
},
"node": "primary",
"expect": {
"setting:shared_buffers": "==524288",
"oom_kills": "==0",
"max_replication_lag_s": "<=30",
"standby_cancellations": "==0",
"recovery_test": "==1"
}
},
{
"sql": "DO $$ BEGIN IF pg_is_in_recovery() OR pg_size_bytes(current_setting('shared_buffers')) <> 4294967296 OR EXISTS (SELECT 1 FROM pg_settings WHERE pending_restart) THEN RAISE EXCEPTION 'Target configuration not active'; END IF; IF current_setting('autovacuum') <> 'on' OR current_setting('track_io_timing') <> 'on' OR current_setting('archive_mode') <> 'on' OR current_setting('archive_command') = '' OR current_setting('wal_level') NOT IN ('replica','logical') OR NOT ('pg_stat_statements' = ANY (string_to_array(replace(current_setting('shared_preload_libraries'), ' ', ''), ','))) THEN RAISE EXCEPTION 'Required services not preserved'; END IF; PERFORM 1 FROM pg_stat_statements LIMIT 1; END $$;",
"expect": {
"setting:shared_buffers": "==524288",
"max_lock_wait_s": "<5",
"oom_kills": "==0",
"max_replication_lag_s": "<=30",
"standby_cancellations": "==0"
}
}
],
"rehearsal": {
"workload": "W_prod",
"minutes": 2,
"metrics": [
"p99_rel",
"tps",
"max_lock_wait_s",
"io_util_pct",
"oom_kills",
"backup_verify",
"recovery_test",
"max_replication_lag_s",
"standby_cancellations"
],
"thresholds": {
"p99_rel": "<=1.2",
"tps": ">=0.9x",
"max_lock_wait_s": "<5",
"io_util_pct": "<=90",
"oom_kills": "==0",
"backup_verify": "==1",
"recovery_test": "==1",
"max_replication_lag_s": "<=30",
"standby_cancellations": "==0"
}
},
"rollback": [
"SELECT 1;"
],
"postconditions": [
"Both nodes have active shared_buffers of 4GB and no pending restart.",
"The standby remains in recovery and streaming, with replication lag no greater than 30 seconds and no recovery-conflict cancellations.",
"Autovacuum, WAL archiving, backups, pg_stat_statements and track_io_timing remain operational; a subsequent backup verifies successfully.",
"No application rows or schema objects are changed by CR statements.",
"Overall p99 remains at most 1.2 times baseline, excluding excused restart periods; standby read p99 remains at most 1.5 times baseline."
],
"risk": {
"class_guess": "Moderate: restart and increased resident-memory allocation.",
"blast_radius": "Both nodes restart, standby first. Restart-related disruption is excused only within the specified limits. An additional 2 GiB per node reduces memory headroom; 25 percent is a starting heuristic, not proof of improvement. Cold caches can increase I/O and latency, and checkpoint behavior may change. The clone cannot validate standby restart, lag, cancellations or standby latency. Production telemetry must assess those risks. Config rollback automatically restores prior settings with additional restarts; the SQL rollback is intentionally a no-op because no data is changed."
}
}