pg_visibility
examine the visibility map (VM) and page-level visibility info
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_visibility | 1.2 | STAT | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 6960 | pg_visibility | No | Yes | No | Yes | No | No | - |
| Related | pageinspect toastinfo pagevis pg_freespacemap pg_buffercache pgstattuple pgrowlocks pg_wait_sampling pg_show_plans old_snapshot |
|---|
Version
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.2 | 1.2 | 1.2 | 1.2 | 1.2 |
Install
Note: This is a built-in contrib extension of PostgreSQL
Usage
pg_visibility provides functions to examine and verify the visibility map (VM), which tracks which pages contain only tuples visible to all transactions.
Functions
Single page visibility:
All pages visibility:
Summary:
Corruption Detection
If either function returns rows, the visibility map is corrupt.
Repair
Access
Functions require superuser or pg_stat_scan_tables role. pg_truncate_visibility_map requires superuser.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)