pgx
PGX — Lightweight Postgres for AI agents. Written in Rust. Thousands of isolated databases in one runtime. 🐘
翻译准备中
Free execution plan analyzer for PostgreSQL, SQL Server and Snowflake. Visualize query plans, detect performance problems and understand slow queries. Private, client-side analysis.
翻译准备中
数据TypeScript · CSSGitHub @kiransabne04在线运营者未确认
试用过了吗? 点一下就好,无需登录。
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Database execution plan reader for Postgres, MSSQL & Snowflake Server
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Understand database execution plans without sending your queries anywhere.
PlanReader is a free, privacy-first execution plan analyzer for PostgreSQL, SQL Server, and Snowflake.
Paste or upload an execution plan and PlanReader turns it into an interactive visualization with deterministic performance findings, Query Health, operator-level evidence, and plain-English explanations.
Database execution plans contain some of the most useful information for diagnosing query performance — but they can be difficult to read, especially when plans contain hundreds of operators.查看完整 README ↗Understand database execution plans without sending your queries anywhere.
PlanReader is a free, privacy-first execution plan analyzer for PostgreSQL, SQL Server, and Snowflake.
Paste or upload an execution plan and PlanReader turns it into an interactive visualization with deterministic performance findings, Query Health, operator-level evidence, and plain-English explanations.
🌐 Live: https://www.planreader.dev
Database execution plans contain some of the most useful information for diagnosing query performance — but they can be difficult to read, especially when plans contain hundreds of operators.
PlanReader helps answer questions such as:
Instead of simply visualizing the plan, PlanReader applies deterministic analysis rules and explains the evidence behind its findings.
Supports PostgreSQL execution plans including:
EXPLAINEXPLAIN ANALYZEPlanReader can identify patterns such as:
PlanReader deliberately avoids treating operators such as Sequential Scan or Nested Loop as inherently bad.
Context and materiality matter.
PlanReader supports SQL Server Showplan XML, including complex and multi-statement plans.
Supported analysis includes execution-plan concepts such as:
PlanReader only surfaces missing-index recommendations when the SQL Server optimizer actually provides the evidence.
It does not fabricate indexes merely because a scan appears in a plan.
PlanReader supports execution operator statistics produced by Snowflake, including data obtained from:
SELECT *
FROM TABLE(GET_QUERY_OPERATOR_STATS('<query_id>'));
PlanReader understands Snowflake-specific execution concepts including:
Snowflake analysis remains focused on the execution operator profile supplied to PlanReader.
Account-wide workload intelligence, warehouse optimization, query-history analysis and cost optimization are intentionally outside PlanReader's scope.
Execution plans can contain sensitive information such as:
PlanReader is designed around a simple principle:
Your execution plans stay in your browser.
Plan analysis happens client-side.
PlanReader does not require:
Recent-plan functionality uses browser-local storage where enabled.
PlanReader can create shareable links containing a compressed representation of a plan.
The plan is encoded into the link itself rather than uploaded to a PlanReader analysis server.
Anyone who receives such a link may be able to view the embedded plan, so sensitive plans should be reviewed before sharing.
PlanReader is intentionally not built around asking an LLM to guess what is wrong with a query.
Its core analysis uses deterministic rules operating on normalized execution-plan evidence.
Conceptually:
Execution Plan
│
▼
Engine Parser
│
▼
Normalized Plan Model
│
▼
Deterministic Rule Engine
│
├── Findings
├── Evidence
├── Query Health
└── Explanations
The same underlying architecture is used across PostgreSQL, SQL Server and Snowflake while preserving engine-specific semantics.
PlanReader follows several principles when generating findings.
A Sequential Scan can be correct.
A Nested Loop can be extremely efficient.
A Key Lookup can be harmless.
A large Snowflake scan can be intentional.
PlanReader considers the surrounding evidence before producing a finding.
A technically inefficient operation taking 0.05 ms should not receive the same attention as one processing millions of rows for several seconds.
Rules consider available evidence such as:
If an execution plan does not provide enough information, PlanReader should say less rather than manufacture a diagnosis.
For example, a large PostgreSQL estimate error may justify investigating statistics, data skew, correlated columns or parameter values.
It does not prove that statistics are stale.
PlanReader summarizes significant findings into a Query Health assessment.
The score is intended to help identify which areas of a plan deserve attention first.
It is not intended to replace performance testing.
Always validate optimization changes against representative workloads.
Execution plans are displayed as interactive operator graphs.
You can:
Large plans can use an optimized Canvas-based renderer to remain usable even when hundreds of operators are present.
SQL Server Showplans may contain many statements, particularly for stored procedures and batches.
PlanReader can parse these independently so a large procedure does not have to be treated as one enormous execution tree.
This makes it easier to identify the statements that deserve investigation first.
PlanReader includes foundations for comparing execution plans.
Comparison can match operators between two versions of a plan and identify structural changes.
The long-term goal is to answer:
Why did this query get slower?
rather than merely:
What changed between these two trees?
Comparison functionality continues to evolve as PlanReader's diagnostic engine matures.
PlanReader follows an engine-adapter architecture.
┌───────────────────────┐
│ Execution Plan │
└───────────┬───────────┘
│
┌──────────────────┼──────────────────┐
│ │ │
▼ ▼ ▼
PostgreSQL Parser SQL Server Parser Snowflake Parser
│ │ │
└──────────────────┼──────────────────┘
│
▼
┌───────────────────────┐
│ Normalized Plan Model │
└───────────┬───────────┘
│
┌─────────────────┼─────────────────┐
│ │ │
▼ ▼ ▼
Rule Engine Visualization Comparison
│
▼
Findings / Health
This lets PlanReader share infrastructure while keeping database-specific interpretation where it belongs.
The repository is broadly organized around:
src/
├── parsers/
│ ├── postgres/
│ ├── sqlserver/
│ └── snowflake/
│
├── rules/
│
├── graph/
│
├── comparison/
│
├── persistence/
│
├── privacy/
│
└── ...
See the /docs directory for detailed architecture, parser specifications, backlog information and implementation notes.
Clone the repository:
git clone https://github.com/kiransabne04/execution-plan-reader.git
cd execution-plan-reader
Install dependencies:
npm install
Start the development server:
npm run dev
Then open the local URL shown by Vite.
Create a production build:
npm run build
PlanReader has automated coverage across parsers, deterministic rules, UI behavior and execution-plan workflows.
Run the available test suites using the scripts defined in package.json.
For example:
npm test
and, where configured:
npm run test:e2e
Before submitting changes, ensure:
A good PlanReader rule should answer four questions:
Use actual execution-plan fields.
Avoid warnings based solely on operator existence.
Separate evidence from assumptions.
Prefer actionable validation steps over unsupported prescriptions.
Every new rule should include:
False-positive prevention is considered part of the feature.
PlanReader prioritizes:
Correctness over rule count
Evidence over assumptions
Low false-positive rates over aggressive recommendations
Database-specific reasoning over generic tuning advice
Privacy over server-side convenience
Deterministic analysis over AI guessing
The goal is not to generate the largest number of warnings.
The goal is to identify the smallest number of findings that genuinely help explain the execution plan.
PlanReader is actively evolving.
Current development areas include:
Deeper PostgreSQL, SQL Server and Snowflake diagnostics.
Connect related symptoms instead of presenting every warning independently.
For example:
Cardinality Estimate Error
│
▼
Nested Loop selected
│
▼
Inner operator executed 500k times
│
▼
Excessive I/O
Build a large labelled corpus containing:
across all three supported engines.
This will allow PlanReader to measure:
Improve before/after plan comparison to identify:
Identify logically related query executions and plan-shape changes.
Track execution-plan evolution locally without requiring server-side plan storage.
Allow sensitive information to be removed before sharing a plan.
Future command-line usage may include:
planreader analyze plan.json
planreader compare before.json after.json
planreader lint plan.json
Longer-term CI workflows could detect execution-plan regressions before deployment.
PlanReader is not intended to replace:
It focuses specifically on:
Understanding and diagnosing execution plans.
Contributions are welcome, particularly in:
Execution-plan interpretation is nuanced.
If PlanReader produces a finding that you believe is incorrect, please open a GitHub issue with a sanitized execution plan and explain:
Please avoid posting sensitive production execution plans publicly. Sanitize:
See the repository's LICENSE file for the current license terms.
Execution plans are complicated. Understanding them shouldn't be. Analyze PostgreSQL, SQL Server and Snowflake execution plans at: