Skip to content

Commit 8d17617

Browse files
tianzhouclaude
andcommitted
chore: update introducing pgconsole blog post
- Fix TOML config examples to match actual pgconsole.toml syntax - Add PostgreSQL-specific positioning and native parser benefits - Add AI Assistant, Open Source sections - Add IAM examples to Built-in Access Control section - Add audit logging SIEM streaming details - Add Docker command and quickstart link Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e809779 commit 8d17617

1 file changed

Lines changed: 46 additions & 10 deletions

File tree

website/content/blog/pgconsole.md

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ We're excited to announce pgconsole 1.0 — a self-hosted PostgreSQL editor desi
99

1010
## Why pgconsole?
1111

12-
Most database tools fall into two camps: heavyweight platforms that require their own infrastructure, or lightweight editors that lack access control. pgconsole sits in the sweet spot — a single binary with everything you need.
12+
Most database tools fall into two camps: heavyweight platforms that require their own infrastructure, or lightweight editors that lack access control. PostgreSQL-specific editors exist but feel outdated, while modern editors spread thin across dozens of databases. pgconsole is a modern editor built exclusively for PostgreSQL — a single binary with everything you need.
13+
14+
By targeting PostgreSQL alone, we optimize every layer of the experience: native database/schema/table navigation, a real PostgreSQL parser powering autocomplete, syntax highlighting, code folding, and formatting — not generic SQL heuristics, but accurate PostgreSQL semantics.
1315

1416
## GitOps Native
1517

@@ -18,31 +20,65 @@ Everything lives in `pgconsole.toml`. Connections, users, groups, access rules
1820
```toml
1921
[[connections]]
2022
id = "production"
21-
url = "postgres://..."
23+
name = "Production"
24+
host = "prod.example.com"
25+
port = 5432
26+
database = "myapp"
27+
username = "app_user"
28+
password = "prod_password"
29+
ssl_mode = "require"
2230

2331
[[auth.providers]]
2432
type = "google"
2533
client_id = "..."
26-
27-
[iam]
28-
[[iam.policies]]
29-
groups = ["engineering"]
30-
connections = ["production"]
31-
permissions = ["read", "explain"]
34+
client_secret = "..."
3235
```
3336

3437
## Built-in Access Control
3538

3639
Seven permission levels — from `explain` (view query plans only) to `admin` (role and database management). Permissions are disjoint, not hierarchical, so you can grant exactly the access each team member needs.
3740

41+
```toml
42+
[[iam]]
43+
connection = "production"
44+
permissions = ["read", "explain"]
45+
members = ["group:engineering"]
46+
47+
[[iam]]
48+
connection = "production"
49+
permissions = ["*"]
50+
members = ["group:dba"]
51+
```
52+
53+
## AI Assistant
54+
55+
Bring your own LLM — OpenAI, Anthropic Claude, or Google Gemini. pgconsole uses your database schema to generate, explain, fix, and rewrite SQL directly in the editor. It also evaluates change risk before you hit run.
56+
57+
```toml
58+
[[ai.providers]]
59+
id = "claude"
60+
name = "Claude Sonnet"
61+
vendor = "anthropic"
62+
model = "claude-sonnet-4-20250514"
63+
api_key = "sk-ant-..."
64+
```
65+
3866
## Audit Logging
3967

40-
Every query is logged with the user, connection, timestamp, and full SQL. No more guessing who ran that `DELETE` on production.
68+
Every query is logged with the user, connection, timestamp, and full SQL. No more guessing who ran that `DELETE` on production. Logs are emitted as JSON to stdout, so you can stream them directly to your SIEM of choice — Splunk, ELK, or any log aggregator.
69+
70+
## Open Source
71+
72+
Connecting to your database is sensitive — so the entire codebase is public and available for inspection. pgconsole doesn't phone home. The only outbound connections are to your databases and, optionally, your configured AI provider.
4173

4274
## Get Started
4375

44-
Install and start querying in under a minute:
76+
Install and start querying in under a minute. See the [quickstart guide](https://docs.pgconsole.com/getting-started/quickstart) for full details.
4577

4678
```bash
4779
npx @pgplex/pgconsole@latest
4880
```
81+
82+
```bash
83+
docker run -p 9876:9876 pgplex/pgconsole
84+
```

0 commit comments

Comments
 (0)