pgx
AI 에이전트를 위한 경량 Postgres, Rust로 구현, 하나의 런타임에서 수천 개의 격리된 데이터베이스 제공
PostgreSQL·SQL Server·Snowflake용 무료 실행 계획 분석, 플랜 시각화·성능 문제 탐지·느린 쿼리 파악
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를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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: