pg_logicalinspect
Logical decoding components inspection
pg_logicalinspect : Logical decoding components inspection
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 6890 | pg_logicalinspect | pg_logicalinspect | 1.0 |
STAT | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| See Also | wal2json pgoutput test_decoding pg_walinspect decoderbufs wal2mongo decoder_raw pgmqtt kafka_fdw pgq |
Packages
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.0 | N/A | N/A | N/A | N/A |
This is a built-in contrib extension ship with the PostgreSQL kernel
Install
Create this extension with:
Usage
pg_logicalinspect provides SQL functions to examine serialized logical decoding snapshots stored in pg_logical/snapshots/, useful for debugging and educational purposes.
Functions
pg_get_logical_snapshot_meta(filename text) – snapshot file metadata:
pg_get_logical_snapshot_info(filename text) – detailed snapshot information:
Listing Available Snapshots
Combine with pg_ls_logicalsnapdir() to discover and inspect all snapshots:
Access Control
Restricted to superusers and members of pg_read_server_files by default.