streaming_lag
A custom background worker process to measure lag in units of time
streaming_lag · A custom background worker process to measure lag in units of time
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101789 | streaming_lag | streaming_lag | 0.0.1 | STAT | PostgreSQL | C |
Usage
Sources:
- Official upstream README
- Official extension control file (streaming_lag.control)
- Official extension SQL (streaming_lag–0.0.1.sql)
streaming_lag — streaming_lag is an experimental extension to measure the lag of a streaming slave in units of time instead of bytes. Use it when collecting or interpreting the corresponding PostgreSQL statistics. Upstream describes this capability as experimental.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
streaming_lagis an extension-defined view.streaming_lag_datais a table installed or managed by the extension.
Requirements and Caveats
- The reviewed control file declares default version
0.0.1. - The control file marks the extension as relocatable.
- The control file requires a superuser for installation.
- Upstream labels part or all of the project experimental.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.