Skip to content

pulse_core

Shared-memory query execution statistics for PostgreSQL 18

pg_pulse · Shared-memory query execution statistics for PostgreSQL 18

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102216pulse_corepg_pulse0.1.0STATC

PostgreSQL · 18

Usage

Sources:

pulse_core is the implemented query-statistics component of the pg_pulse prototype. Executor hooks collect per-query calls, timing, row counts and last-seen timestamps in shared memory.

Core Workflow

shared_preload_libraries = 'pulse_core'
compute_query_id = on
CREATE EXTENSION pulse_core;
SELECT * FROM pulse.queries() ORDER BY total_ms DESC;

Operational Boundaries

This project targets PostgreSQL 18. Add pulse_core to shared_preload_libraries and restart before administrator installation; late loading is rejected. Enable compute_query_id as in the upstream regression configuration. pulse.max_entries is a postmaster setting with default 1000; pulse.track accepts none, top or all and defaults to top. pulse.queries() reports the current statistics, while pulse.reset() clears them. Both functions are revoked from PUBLIC and granted to pg_monitor; review membership because that role can reset statistics too. Shared-memory counters do not establish durable history. The separate health-worker component is still a scaffold and is not represented by this entry.

Table reader