Back to directory

Pgstat Framework

Agent skill
1 skill

The PostgreSQL cumulative-statistics framework — src/backend/utils/activity/pgstat.c (post-PG-15 shared-memory design). Loads when the user asks about pgstat views, cumulative stats, stat kinds (variable vs fixed), pending-vs-shared flush timing, adding a new stat counter, extending stats with a custom kind, wait events, backend status, IO/SLRU/WAL/replslot/subscription stats, or debugging "I ran a query but pgstat shows 0" surprises. Also use for pgstatprogress (in-progress command reporting via a separate shmem slot per backend), backendstatus.c (the process-level status the ps output + pgstatactivity read from), and waitevent.c (the taxonomy behind waiteventtype / waitevent). Skip when the ask is about extended-column statistics (pgstatistic / pgstatisticext — different subsystem: src/backend/statistics/, use extended-statistics-statext idiom), or about pgstatstatements contrib module (different, though it hooks in).

Install with
Claude CodeCodexCursorGitHub CopilotGemini CLI

Supported by the Atlas install prompt. Skill-specific requirements vary.

Skill stats

Skills1CategoryScience & researchStars0

About this skill

The PostgreSQL cumulative-statistics framework — src/backend/utils/activity/pgstat.c (post-PG-15 shared-memory design). Loads when the user asks about pgstat views, cumulative stats, stat kinds (variable vs fixed), pending-vs-shared flush timing, adding a new stat counter, extending stats with a custom kind, wait events, backend status, IO/SLRU/WAL/replslot/subscription stats, or debugging "I ran a query but pgstat shows 0" surprises. Also use for pgstatprogress (in-progress command reporting via a separate shmem slot per backend), backendstatus.c (the process-level status the ps output + pgstatactivity read from), and waitevent.c (the taxonomy behind waiteventtype / waitevent). Skip when the ask is about extended-column statistics (pgstatistic / pgstatisticext — different subsystem: src/backend/statistics/, use extended-statistics-statext idiom), or about pgstatstatements contrib module (different, though it hooks in).

Quick start

  1. Copy the install prompt. Use the green button above this README.
  2. Send it to your agent. Paste it into your coding agent’s chat and send.
  3. Review the setup. Your agent checks the skill’s instructions, requirements, and installation scope.
Review, license & listing details
Review the source before using this skill

This is an imported listing. We haven’t certified its safety, license, or compatibility. Skills may include executable scripts.

Automated security scan: Partial

Only SKILL.md was scanned. Supporting files and scripts were not checked. No safety grade has been assigned.

0 potential findings · Scanned 11/4/2026 · Scanner 0.2.1

Content SHA-256: 9ad6eda4da8fcac833d8314e58f2f74113c7da9215ad8a0a540111478c89e390

About scan coverage and limitations

About this listing

Category
Science & research
Reported license
PostgreSQL
Listing language (estimated)
English
Review status
Not individually reviewed
Agent compatibility
Atlas installation supports Claude Code, Codex, and Cursor. Skill-specific dependencies and features are checked during setup.
Pgstat Framework | Agent Skills Atlas