Skip to content

pg_meminfo

Backend memory and process usage inspection from SQL.

pg_meminfo · Backend memory and process usage inspection from SQL.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101917pg_meminfopg_meminfo1.0STATMITC

Usage

Sources:

pg_meminfo Backend memory and process usage inspection from SQL.

Enablement

Install the files for the intended server, then create pg_meminfo in the target database:

CREATE EXTENSION pg_meminfo;

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

SELECT pss FROM smap_summary WHERE pid = 4242;

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
smap_summaryVIEWInspection or query view created by the extension.
get_all_smapsFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • Treat extension upgrades as database changes: review the upstream upgrade path, privileges, locks, and backup/restore behavior first.

Table reader