autovacuum_informations
autovacuum_informations · PostgreSQL extension that adds functions for reporting the autovacuum launcher PID and autovacuum worker information.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100413 | autovacuum_informations | autovacuum_informations | 1.0 | STAT | Unknown | C |
Usage
Sources:
autovacuum_informations 1.0 exposes PostgreSQL’s in-memory autovacuum launcher and worker state through two C functions. It is a diagnostic prototype tied to PostgreSQL internals; upstream explicitly says that it is work in progress and must not be used in production.
Core Workflow
Install the extension, then read the launcher PID or expand the record returned for each active worker:
The launcher function returns a bigint PID, or null when no launcher PID is available. The worker function is declared as SETOF record, so callers must supply the nine-column record definition shown above.
Important Objects
get_autovacuum_launcher_pid()reads the launcher process ID from autovacuum shared memory.get_autovacuum_workers_infos()reports the current worker index, database and relation OIDs, PID, launch time, balancing flag, and cost settings.
Operational Notes
The control file fixes the extension in pg_catalog and marks it non-relocatable. It has no GUC or preload requirement, but its C implementation uses PostgreSQL private autovacuum structures and locks, so server-version compatibility must be validated against the exact build. Treat all output as transient diagnostic state and retain upstream’s explicit non-production warning.