pg_visibility
examine the visibility map (VM) and page-level visibility info
pg_visibility : examine the visibility map (VM) and page-level visibility info
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 6960 | pg_visibility | pg_visibility | 1.2 |
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 | pageinspect toastinfo pagevis pg_freespacemap pg_buffercache pgstattuple pgrowlocks pg_wait_sampling pg_show_plans old_snapshot |
Packages
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.2 | 1.2 | 1.2 | 1.2 | 1.2 |
This is a built-in contrib extension ship with the PostgreSQL kernel
Install
Create this extension with:
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.