pg_io_audit
pg_io_hooks · Cluster-wide storage-manager I/O counters and traces for a patched PostgreSQL kernel.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102363 | pg_io_audit | pg_io_hooks | 1.0 | STAT | PostgreSQL | C |
PostgreSQL · 17
Usage
Sources:
pg_io_audit is a research module for PostgreSQL 17 with the project’s storage-manager hook patch. It is not loadable on an ordinary unpatched server. Counters describe requests to the storage manager, not confirmed physical I/O completion.
Enable and inspect
Restart the patched server, then install the SQL interface as an administrator. Monitoring functions and views are limited to pg_monitor or superusers; reset is superuser-only.
Interpretation
Statistics group calls and blocks by operation and fork. The optional bounded trace records recent relation-file events on a best-effort basis. enabled can be reloaded; trace_size requires restart. Shared-memory counters and traces disappear after restart or crash. WAL, SLRU, temporary files and direct directory operations are outside these hooks.