Skip to content

pgjumbo Adds Write Previews and Plan Comparison to a New PostgreSQL Client

Benjamin Ibrulj has released pgjumbo, a PostgreSQL client for macOS, Windows and Linux. It shows the likely impact of writes before they run and offers an optional AI assistant built on Claude Code.

3 min readBased on 1 source27 views

TL;DR

  • pgjumbo is a new PostgreSQL client from Benjamin Ibrulj, available for macOS, Windows and Linux.
  • Before a write runs, it estimates affected rows, triggers, cascading foreign keys and locks.
  • Its AI assistant is optional, off by default, and uses a Claude Code installation already on the user's machine.

Checking writes before they run

The main feature targets a common risk with UPDATE, DELETE and table-changing statements. When a developer rests the cursor on a write in the Query Tool, pgjumbo shows a strip above the statement. It lists how many rows the change will touch, which triggers will fire, which foreign keys will cascade and what locks the statement will take. The row count comes from the planner's estimate, so the query does not run to produce it. When that estimate is too rough, a Count exactly option runs a read-only count built from the statement's WHERE clause, with a limit of 10 seconds.

For a closer look, a Rehearse action executes an UPDATE, DELETE or MERGE inside a transaction that is never committed. It then lists each changed row with its old and new values side by side. Every statement also runs under its own savepoint, so a mistake partway through a transaction rolls back only that statement. A Smart commit mode delays opening a transaction until the first write, so a session that only reads does not keep one open.

Plans and what-if comparisons

The Explain tab draws a query plan as a diagram, links each step to the SQL that produced it and highlights the slowest step. The What if feature compares the current plan with one that would use an index not yet created, or with one produced under a different planner setting such as work_mem. Both plans come from a plain EXPLAIN run in the tab's own session, so no index is built and other connections on the server are not affected.

An optional AI assistant with explicit limits

pgjumbo includes an Assistant, but it does not have its own AI account. It relies on the Claude Code installation on the user's computer, which must be signed in with either a Claude plan or an API key. The Assistant is disabled by default, and when it is disabled, pgjumbo sends no data anywhere.

Users control what the Assistant may read on each type of server. By default it can read schema and statistics, asks before reading row data on Dev and Staging, and asks every time on Production. SQL suggestions are validated with PostgreSQL's parser, and nothing runs until the user runs it.

Compatibility

According to the Laravel News report, pgjumbo connects to PostgreSQL 14 through 19, with 12 and 13 supported on a best-effort basis. It also works with Amazon RDS and Aurora using IAM sign-in, and with servers reached through an SSH tunnel. Builds are available for macOS 13 or newer, covering both Apple silicon and Intel, for Windows 10 and 11 on x64 and ARM64, and for Linux. The user guide and downloads are on pgjumbo.com.

Why it matters

For backend teams, the appeal is a safer workflow for ad hoc production-style changes. Showing estimated impact and triggers before a write, and rolling back a single failed statement inside a transaction, addresses errors that often happen in manual SQL sessions. The read-only count and the what-if plans use planner estimates and plain EXPLAIN, so they are useful for checking a change, but they are not guarantees. Teams that adopt the optional Assistant should decide in advance which environments it may read, especially Production, and should keep the default of sending nothing unless they have reviewed the policy.

Sources

This article was written by Blozhik from the reporting below. Read the originals for full detail.

Lapgjumbo: A PostgreSQL Client for macOS, Windows, and LinuxLaravel News
Was this useful?

Keep reading

Discussion · 0

Sign in to join the discussion. Liking does not need an account.Sign inRegister
Loading comments…
blozhikDeveloper news from across the web, explained. Every story links to its original sources.