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: