RefLib

Reference library for AI

Back

postgresql_16:9.6.33 pgstattuple — obtain tuple-level statistics

PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > pgstattuple — obtain tuple-level statistics

The pgstattuple module provides various functions to obtain tuple-level statistics.

Because these functions return detailed page-level information, access is restricted by default. By default, only the role pg_stat_scan_tables has EXECUTE privilege. Superusers of course bypass this restriction. After the extension has been installed, users may issue GRANT commands to change the privileges on the functions to allow others to execute them. However, it might be preferable to add those users to the pg_stat_scan_tables role instead.

Subsections

Back