Back to skills

neon-postgres-egress-optimizer

data

Diagnoses and fixes Postgres query patterns that cause excessive data transfer from a database to an application. Works by analyzing pg_stat_statements output to find queries returning too many rows,

Setup & Installation

npx skills add https://github.com/neondatabase/neon-postgres-egress-optimizer --skill neon-postgres-egress-optimizer
or paste the link and ask your coding assistant to install it
https://github.com/neondatabase/neon-postgres-egress-optimizer
View on GitHub

What This Skill Does

Diagnoses and fixes Postgres query patterns that cause excessive data transfer from a database to an application. Works by analyzing pg_stat_statements output to find queries returning too many rows, too many columns, or running too frequently. Covers SELECT * abuse, missing pagination, JOIN duplication, and application-side aggregation. Running pg_stat_statements diagnostics manually and mapping high-row queries back to application code takes hours; this skill walks through the exact SQL, the interpretation, and the fix for each pattern in one pass.

When to use it

  • Working with neon postgres egress optimizer functionality
  • Implementing neon postgres egress optimizer features
  • Debugging neon postgres egress optimizer related issues