pg_show_vm
pg show vm displays the visibility map data for a specified relation, including its corresponding indexes and partitions.
pg_show_vm · pg show vm displays the visibility map data for a specified relation, including its corresponding indexes and partitions.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101623 | pg_show_vm | pg_show_vm | 1.0 | ADMIN | Unknown | C |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_show_vm.control)
- Official extension SQL (pg_show_vm–1.0.sql)
pg_show_vm — This extension supports PostgreSQL versions 16 and 17. Use it when administering or automating the database behavior described above. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
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
pg_show_rel_vm(IN relname text, IN index bool, IN partition bool, OUT relid int, OUT relpages int, OUT all_visible int, OUT all_frozen int, OUT type int)is an extension function and returnsSETOF.pg_show_vm(IN relid oid, OUT relid int, OUT relpages int, OUT all_visible int, OUT all_frozen int, OUT type int)is an extension function and returnsSETOF.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.