Read PG WAL records
read_pg_wal_recordsRead Write-Ahead Log (WAL) records over a specified LSN range to analyze transaction history and database changes. Requires the pg_walinspect extension.
Instructions
Read Write-Ahead Log (WAL) records information over a specified LSN range. Requires the pg_walinspect extension. If not installed, returns available=false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| end_lsn | No | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. | |
| start_lsn | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | ||
| available | Yes |