经 AI Skill Hub 精选评估,PgStudio 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
智能PostgreSQL工具,支持构建、探索和查询
PgStudio 是一款基于 TypeScript 开发的开源工具,专注于 PostgreSQL、VS Code、数据库管理 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
智能PostgreSQL工具,支持构建、探索和查询
PgStudio 是一款基于 TypeScript 开发的开源工具,专注于 PostgreSQL、VS Code、数据库管理 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g pgstudio # 方式二:npx 直接运行(无需安装) npx pgstudio --help # 方式三:项目依赖安装 npm install pgstudio # 方式四:从源码运行 git clone https://github.com/dev-asterix/PgStudio cd PgStudio npm install npm start
# 命令行使用
pgstudio --help
# 基本用法
pgstudio [options] <input>
# Node.js 代码中使用
const pgstudio = require('pgstudio');
const result = await pgstudio.run(options);
console.log(result);
# pgstudio 配置说明 # 查看配置选项 pgstudio --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export PGSTUDIO_CONFIG="/path/to/config.yml"

---
SELECTs, configurable bytea display, and structured in-grid editing with explicit commit confirmation---
</td> </tr> <tr> <td>
| Area | NexQL v2.2.0+ | Notes |
|---|---|---|
| Core PostgreSQL object operations | ✅ | Tables, views, mat views, functions, roles, extensions, FDWs, and more |
| AI-assisted SQL workflows | ✅ | Generate, optimize, explain, and analyze with notebook-first execution |
| Production safety controls | ✅ | Read-only mode, risk scoring, confirmation prompts, Auto-LIMIT |
| Real-time monitoring dashboard | ✅ | Activity and health views in VS Code |
| Interactive SQL notebooks | ✅ | Native .pgsql notebook execution with completions |
| In-grid result editing parity with desktop IDEs | ⚠️ Partial | Stronger commit flow and tooling in v1.2.x; full parity still evolving |
| ERD/schema visualization parity | ⚠️ Partial | Schema designer exists; ERD depth still evolving |
| Advanced replication administration | ⚠️ Partial | Additional publication/subscription depth planned |
---
npm install
npm ci

NexQL ships with a privacy-first telemetry client designed for anonymous product analytics.
```bash
npm run compile ```
```bash
```bash
npx vsce package
```bash
---
```bash

Set these in VS Code settings:
postgresExplorer.telemetry.mode: off | basic | detailed (default basic)postgresExplorer.telemetry.allowUsage: allow anonymous usage counters (default true)postgresExplorer.telemetry.allowPerformance: allow anonymized performance buckets (default false)For remote telemetry ingestion:
postgresExplorer.telemetry.posthogHost: default https://us.i.posthog.compostgresExplorer.telemetry.posthogApiKey: your PostHog project keyIf posthogApiKey is empty, telemetry stays local (debug sink only).
No API keys, no provider accounts, no setup. NexQL Free AI is the default AI provider, powered by managed models behind a secure gateway proxy. Three tiered models available:
Configure your AI provider: Open VS Code Settings → search postgresExplorer.ai.chat.provider or run NexQL: Open AI Settings from the Command Palette. AI Settings documentation →
</td> <td width="50%">
F5 to launch Extension Development HostCtrl+Shift+D) → "Run Extension"npm run test:integration
NexQL (formerly YAPE) is a comprehensive PostgreSQL database management extension featuring interactive SQL notebooks, real-time monitoring dashboard, AI-powered assistance, and advanced database operations—all within VS Code.
📖 Documentation • 🛒 Marketplace • 🤝 Contributing • 📝 v2.2.0 Release Notes • 📋 Full Changelog
</div>
---
ext install ric-v.postgres-explorer
npx vsce publish
| Feature | NexQL | pgAdmin | DBeaver | TablePlus |
|---|---|---|---|---|
| **VS Code Integration** | ✅ Native | ❌ | ❌ | ❌ |
| **SQL Notebooks** | ✅ Interactive | ❌ | ❌ | ❌ |
| **AI Assistant** | ✅ Built-in | ❌ | ❌ | ❌ |
| **Real-time Dashboard** | ✅ | ✅ | ⚠️ Limited | ⚠️ Limited |
| **Inline Cell Editing** | ✅ | ✅ | ✅ | ✅ |
| **Export Formats** | CSV, JSON, Excel | CSV, JSON | CSV, JSON, Excel | CSV, JSON, SQL |
| **SSH Tunneling** | ✅ | ✅ | ✅ | ✅ |
| **Foreign Data Wrappers** | ✅ Full | ✅ | ⚠️ Limited | ❌ |
| **License** | MIT (Free) | PostgreSQL (Free) | Apache 2.0 (Free) | Proprietary (Paid) |
PgStudio 是一个用于 PostgreSQL 的 VS Code 扩展,提供了一个强大的开发环境,帮助开发者高效地管理和维护 PostgreSQL 数据库。它提供了实时监控、性能分析、安全连接等功能,帮助开发者快速解决问题和提高开发效率。
PgStudio 的主要功能包括:安全连接、连接安全、性能跟踪、实时仪表板、健康信号等。它还提供了交互式 SQL 笔记本、AI 驱动的 Copilot 和代理支持、表格智能和性能洞察、完整 CRUD 操作和 EXPLAIN CodeLens 等功能。
PgStudio 的环境依赖包括 Node.js >= 18.0.0、VS Code >= 1.90.0 和 PostgreSQL (用于测试)。开发者需要安装依赖项,使用 npm install 或 npm ci 进行安装。
PgStudio 的安装步骤包括设置、Telemetry 设置和配置。开发者需要在 VS Code 中安装扩展,配置 Telemetry 模式和 PostHog 源,并设置环境变量。
PgStudio 的使用教程包括快速入门、保存查询、添加元数据、组织和重用等步骤。开发者可以使用 CodeLens 按钮保存查询、添加描述和标签、使用标签组织相关查询,并重用保存的查询。
PgStudio 的配置说明包括 Telemetry 模式、PostHog 源和环境变量设置。开发者可以配置 Telemetry 模式、PostHog 源和环境变量,来控制扩展的行为和数据收集。
PgStudio 的 API/接口说明包括扩展的 API 设计和接口定义。开发者可以使用扩展的 API 来访问和操作 PostgreSQL 数据库。
PgStudio 的工作流/模块说明包括扩展的工作流和模块定义。开发者可以使用扩展的工作流和模块来管理和维护 PostgreSQL 数据库。
PgStudio 的 FAQ 摘要包括常见问题和解决方案。开发者可以在这里找到答案和解决方案。
高质量的PostgreSQL工具,支持智能构建和查询
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:PgStudio 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | PgStudio |
| 原始描述 | 开源AI工具:Intelligent PostgreSQL tooling for VS Code | Build, explore, and query Postgres 。⭐11 · TypeScript |
| Topics | PostgreSQLVS Code数据库管理 |
| GitHub | https://github.com/dev-asterix/PgStudio |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-06-04 · 更新时间:2026-06-05 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。