Write SQL, manage PostgreSQL databases, and leverage AI — all without
- leaving VS Code. Interactive SQL notebooks (.pgsql), live dashboards, schema explorer, and AI-assisted query
- optimization with OpenAI, Anthropic Claude, Gemini, and GitHub Models.
+ Interactive workspace
+ Click to open the full demo
+
+
+
+
+
+
+ Schema contextorders, customers
+
+
+ Safe env labelsDEV / PROD
+
+
+ Plan insightIndex recommendation
+
+
+
+
> PgStudio: optimize current query
+
+ ✦
+ Ask AI with schema context
+
+
+ ▷
+ Run selected SQL cell
+
+
+ ⬡
+ Open table explorer
+
+
+
+
+
+
+
+
+
+
+
+ PgStudio Workspace · Demo Project
+
+ query.pgsql
+ README.md
+
+
+
+
+
+
+
PGSTUDIO
+
+
+ query.pgsql
+
+
+
+ sales_health.pgsql
+
+
SCHEMA
+
orders
+
customers
+
products
+
+ Safe env labels
+ DEV / PROD
+
+
+
+
+
+
+
day
orders
revenue
+
+
+
Apr 07
142
$18,420
+
Apr 08
158
$21,340
+
Apr 09
131
$17,890
+
Apr 10
177
$24,110
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
SQL ASSISTANT
+
+ Schema context: orders, customers
+
+
Why is this daily revenue query slow?
+
+ I can see orders.created_at is not indexed. Create
+ idx_orders_created_at concurrently, then cache the daily rollup
+ for dashboard latency.
+ Expected result: 3s to under 100ms on this demo shape.
+
+
+
+
+
+
+ Plan insight
+ Index recommendation
+
+
+
+
+
+
-
-- Real-time database insights
-SELECT
- date_trunc('day', created_at) AS day,
- COUNT(*) AS users,
- SUM(amount) AS revenue
-FROM orders
-WHERE created_at >= NOW() - INTERVAL'7 days'
-GROUP BY day ORDER BY day;
PgStudio helps developers query PostgreSQL in VS Code with notebooks, explorer navigation,
schema tools, AI-assisted SQL generation, EXPLAIN analysis, and performance optimization workflows.
@@ -96,4 +388,4 @@
PgStudio capabilities
Production safety controls with environment labels and read-only mode
-
\ No newline at end of file
+
diff --git a/docs/index.html b/docs/index.html
index 284924e..c79d350 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -30,7 +30,7 @@
-
+
+