Skip to content

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

IDExtensionPackageVersionCategoryLicenseLanguage
101623pg_show_vmpg_show_vm1.0ADMINUnknownC

Usage

Sources:

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

CREATE EXTENSION pg_show_vm;

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 returns SETOF.
  • 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 returns SETOF.

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.

Table reader