Skip to content
hercstackPublic

About

PostgreSQL IDE. Extensible, powerful, featherweight, free, no account, for macOS, Windows and Linux

Topics

Resources

Contributing

Security policy

Stars

16 stars

Watchers

0 watching

Forks

Latest commit

 

History

273 Commits

Folders and files

Repository files navigation

PlumeSQL

A desktop IDE for PostgreSQL, and only PostgreSQL. It reads your SQL with PostgreSQL's own parser, has your server check it as you type, and turns a SQL file into a tool. Free, a 14 MB download, no account.

Note

PlumeSQL 0.33.0 is here: design a database on a diagram, from a sketch or a logical model to real tables, and keep what every table and column means in a Database Dictionary beside your code. Functions in JavaScript and Python are edited like PL/pgSQL, every function in a script of its own, and PostgreSQL 19 is supported. What's in it.

PlumeSQL is in beta, with a new release about every week. The app updates itself, and features can still change between releases. Something broken or missing? Open an issue, or use Report a Bug in the app.

Download · Videos · Extensions · Discussions

Why PlumeSQL, when you have DataGrip or pgAdmin?

PlumeSQL is built for one job: writing and running PostgreSQL every day. Because it does nothing else, it can use everything PostgreSQL has.

  • The editor runs PostgreSQL's own parser. Completion and checks read your statement the way the server will, CTEs, subqueries and half written statements included. Your server checks names and types as you type, without running anything, and a PL/pgSQL body is checked without creating the function. More
  • Functions in JavaScript and Python too. A PL/V8 or PL/Python function is edited in its own language: completed, checked, navigated and outlined, with the SQL inside its queries completing your tables. A query's rows and a trigger's NEW complete their columns, in PL/pgSQL as well, and a column the row doesn't have is caught before the function runs. More
  • Design on a diagram. Sketch notes, draw lines between them, and Make Tables turns them into tables with their keys; a logical model with crow's feet, or Mermaid's erDiagram, gets there the same way. Existing tables are edited right on their cards. More
  • What your data means, written down. A Database Dictionary is a Markdown file beside your code that PlumeSQL keeps up to date with your database: your team writes what every table and column is for, GitHub shows it as a page, AI agents read it, and the words go back to the database as comments. More
  • It sees your session. Create a temp table, or a table in a transaction you haven't committed, and it's in the object tree and in completion at once. Roll back and it's gone. We found no other client that does this by default.
  • Nearly a hundred refactors. The lightbulb fixes an ambiguous column, turns a NOT IN that breaks on NULL into NOT EXISTS, writes the index a slow filter is missing and spreads a JSON column into columns. 36 are built in, the rest come in free extensions.
  • A SQL file becomes a tool. A few comments turn a query into a monitor, a dashboard or a button you can send to your team. More than 200 free extensions are made this way: locks, bloat, EXPLAIN, charts, maps, PostGIS, pgvector, TimescaleDB.
  • Every change read before it runs. Edit a table in its Design, or any object's owner and grants in Properties: it all goes into one script you read, and can change, run in one transaction when you say so. More
  • Safe on production. -- @readonly makes PostgreSQL itself refuse writes, an UPDATE without WHERE turns red before it runs, and a Production connection asks before anything changes data and asks the server nothing while you type.
  • It works in your folder. plumesql . opens the project you already have, finds its connections in .env, docker-compose, Django, Prisma, Rails or Spring, and keeps scripts, diagrams and extensions as plain files for git.
  • Feels like VS Code. The same editor, shortcuts and command palette, and Import from VS Code for your settings, theme and connections.

At a glance, on macOS with Apple Silicon:

PlumeSQL Free DataGrip pgAdmin
Price Free for all use Free for non-commercial use; commercial from EUR 109 a year Free, open source
Account None JetBrains Account None
Telemetry None Mandatory on the free licence None documented
Download 14 MB 1.03 GB 235 MB
Installed 38 MB 2.6 GB 726 MB
Databases PostgreSQL Many PostgreSQL
Tree and completion see your temp and uncommitted tables By default With a single shared session switched on No

The other tools' prices, terms and sizes as read and measured on 14 October 2026.

When your current tool is still the better choice

PlumeSQL is young. Keep what you have, or keep it beside PlumeSQL, if you need:

  • databases other than PostgreSQL;
  • schema compare with migration scripts;
  • a PL/pgSQL debugger or an AI assistant (both on the list below);
  • query history, Git inside the app, or finding text in a result;
  • an Intel Mac, or Windows or Linux on ARM: PlumeSQL runs on Apple Silicon Macs, Windows x64 and Linux x86_64.

Trying it costs nothing: plumesql . opens the folder you already work in, and nothing in it changes unless you ask.

In beta, a release a week, and what's next

PlumeSQL has been in public beta since 4 October 2026: twenty releases in its first eight weeks, each installed by the app itself. What we're most likely to build next, subject to change:

  • a PL/pgSQL debugger
  • a test runner for your database
  • a semantic layer that ties your tables to the business they describe, grown from the Database Dictionary

And AI built on it, not beside it: a knowledge graph that joins what your data means to your business with the PostgreSQL documentation PlumeSQL already carries. It will always be optional: if you want no AI, you get none.

Tell us what you need in Discussions.

A SQL file becomes a tool

Here's a whole extension. It's one SQL file, a query and a few @ comments, and PlumeSQL turns it into a small app you run from the Extensions tab or pin to the title bar. This one is a lock monitor. It shows who is waiting on a lock and who is holding it:

-- @description Backends waiting on a lock, and the backend holding it
-- @refresh 5s
select w.pid as waiter, b.pid as blocker, w.query as "waiting query"
from pg_catalog.pg_stat_activity w
     join lateral pg_catalog.unnest(pg_catalog.pg_blocking_pids(w.pid)) as bp on true
     join pg_catalog.pg_stat_activity b on b.pid = bp;

-- @button terminate blocker
-- @confirm Terminate backend $blocker? Any transaction it holds is rolled back, which is what releases the lock.
select pg_catalog.pg_terminate_backend($blocker);

It refreshes every five seconds and puts a Terminate button on every row, which asks before it acts:

The lock monitor running: a blocked backend's row, its Terminate button, the confirmation, and the row gone

That's a cut-down version of blocking-locks, one of more than 200 extensions in this repo. To any other tool it's still just a SQL file. More below.

Free, no account, for macOS, Windows and Linux. The app is closed source; the extensions and specifications in this repository are MIT.

Deep on PostgreSQL

PlumeSQL is built on PostgreSQL's own parser, catalogs and sessions:

  • An extension for almost everything. Locks, waits, vacuum, bloat, replication, indexes, checkpoints, I/O, sequences close to overflow, backups. There are extensions for the PostgreSQL extensions too: PostGIS, TimescaleDB, pgvector, Citus, pg_cron, pg_partman and pg_stat_statements. PlumeSQL sees what's installed on your server and recommends the ones that fit.
  • The PostgreSQL docs, right where you need them. Hover a keyword, a clause, a type or a function and you get its own section of the reference, for your server's version, with an example. Every catalog, builtin and extension function opens its real page inside PlumeSQL, even catalog columns explain themselves, and the pages work offline.
  • EXPLAIN that tells you what's wrong. The explain-plan extension lays the plan out as cards and points out what to look at first: the steps eating the time, estimates that are way off, sorts that spilled to disk. EXPLAIN ANALYZE on a write runs in a rollback, so nothing changes.
  • PL/pgSQL checked as you type. A function body is checked against the real server without creating anything, so you see a missing table before the function ever runs, with plpgsql_check style warnings (unused variables, unreachable code, a missing RETURN) and no plpgsql_check to install.
  • PL/V8 and PL/Python, as well as PL/pgSQL. A function in JavaScript or Python gets the help its language deserves, and PlumeSQL warns before the run when the connection doesn't have the language, with the CREATE EXTENSION written for you.
  • Safe on production. Besides @readonly and the red UPDATE without WHERE, COMMIT can show you what the transaction changed before it goes through.

The editor

Completion that reads your statement

Completion knows what your statement defines, not just what's in the database, and keeps up while the statement is only half written.

  • Your query's own names. A CTE is a table in FROM and its columns follow its alias; a subquery's alias knows what it selects, a function in FROM knows what it returns. Only what's visible at the cursor is offered.
  • Whole phrases from your foreign keys. After a table in FROM it offers every related table as a complete join, ON included. An INSERT gets its column list and VALUES, ON CONFLICT gets the upsert.
  • The next word first. After select * the list opens on FROM, after a join on ON, after a condition on AND, GROUP BY and ORDER BY.
  • PL/pgSQL too. Parameters and variables with their types, a %ROWTYPE variable's columns, a record's columns from the query that fills it, a trigger's NEW and OLD from its table, exception names with their SQLSTATE, and every loop and block, written out for you.

Functions in JavaScript and Python

PostgreSQL runs functions written in JavaScript (PL/V8) and Python (PL/Python), and PlumeSQL edits them the way it edits PL/pgSQL. Write LANGUAGE plv8 or LANGUAGE plpython3u and the body is drawn in its own language:

  • Its language's own help. PL/V8 gets JavaScript's type-aware completion, hovers and signature help for plv8.execute and the rest of PL/V8's API, its parameters typed from their SQL types. PL/Python gets plpy, the standard library and the builtins, with the signatures and documentation Python itself reports.
  • The SQL inside is SQL. A query in plv8.execute('...') or plpy.execute("...") is drawn, checked and completed from your database, as in a script.
  • Rows that know their columns. found[0]. after a query lists its columns, and a trigger's NEW (TD['new'] in Python) its table's. A column the row doesn't have is a warning with the nearest one as its fix: in PL/V8 it would have been undefined without a word.
  • Checked as you type. Syntax errors, Python's indentation as PostgreSQL reads it, unused variables, and a declared IMMUTABLE that reads a table.
  • Navigate and outline. Go to Definition, Find References and Rename on the body's names, F12 into plv8, plpy and JavaScript's standard library, folding and the Outline by the body's own structure.

A PL/V8 function's query, inside a JavaScript string, completing a column of its table

A function's whole life in a script

Edit Function on a function or a procedure opens its CREATE OR REPLACE in a script of its own, and that script knows what it makes:

  • Before you run it, it says what PostgreSQL will do with a changed signature, and Write DROP and CREATE puts the way out in the script, its owner and grants put back.
  • Add Call writes a call of it, between BEGIN and ROLLBACK when its body writes, its arguments asked when you run.
  • Add Test writes an arrange, act, assert test from what the body reads, the value to expect selected for you to type.
  • Its properties, its comment and its grants, set in Properties, are written into the script, to run with it.

The lightbulb

The lightbulb beside each statement rewrites it for you. A few of the refactors, and you can switch off any you don't want:

  • Fixes. An ambiguous column gets the table you pick when the server complains, a stray comma before FROM goes, NOT IN turns into a NOT EXISTS that's safe with NULLs.
  • Rewrites. Join a related table along its foreign key, expand * into columns, extract a subquery into a CTE or a value into a parameter, and inline it back.
  • Safety. See the rows an UPDATE or DELETE would touch before you run it, add a WHERE on the primary key, add RETURNING or an upsert.
  • From the results. A text column full of dates gets cast to date, the keys of a JSON column become columns, a column of categories gets counted per value.
  • Indexes. A column you filter on, in a big table no index starts with, gets the CREATE INDEX it's missing.
  • From a selection. Select columns and it finds their duplicates or profiles them; select statements and it wraps them in a transaction, one that rolls back so you can try them, or a DO block.

Extensions add their own: window functions write a running total or the top rows per group into your query, and statistics describes a number column, its trend and outliers, computed by PostgreSQL. When your query looks like it could use one, the lightbulb offers to install it.

The grid

  • Millions of rows. Kept whole on disk and scrolled smoothly. Freeze rows and columns like in a spreadsheet, filter, peek at a long value, compare two results side by side.
  • Edit rows. A query that reads one table is editable: with its key in the result, type over cells and Save writes it all in one transaction, or press F2 for a form where an enum picks from its labels, a foreign key from the rows it references, and jsonb opens in a JSON editor. Every change has an Undo, and a row someone else changed meanwhile is never overwritten.
  • Paste into a table. Copy from Excel, Sheets or another result and paste. The format is detected, a decimal comma and a day-first date read as you meant them, and you see old and new values before anything is written. A CSV, TSV or JSON file dropped on the window goes into a new table, its columns named and typed for you.
  • Follow foreign keys. A foreign key value is a link to the row it points at, with Back and Forward to retrace your steps.

Changing the database

A table's tab has two faces: its DDL, and its Design, where the columns, keys, checks, foreign keys and indexes are grids you edit where they stand. A name, a type or an expression PostgreSQL wouldn't read is flagged before anything runs. Move a column and the table is rebuilt in the new order, its data, keys, views, triggers and grants kept. New Table starts one the same way.

A table's Design: shop.orders with its columns as a grid, a renamed column and a changed type tinted, a new discount column marked with a plus, and Properties on the right showing the selected status column

Properties edits the rest of any object: its owner, its grants, its options, a function's security and settings, and its comment, written in Markdown.

Nothing runs while you edit. Every change goes into one script per connection, which you read, change if you like, and run in one transaction with Run Changes. What may lose data or lock a big table says so in the script, and Undo is right where you made the change.

Diagrams

Pick objects from the object tree and they're laid out with their keys and dependencies, schemas as frames. A diagram is a file beside your scripts, shared through git, and each computer draws it from a connection of its own.

It is also where a database is designed. Sketch a note per thing with its columns in plain words, draw lines between them, and Make Tables turns them into tables with their primary and foreign keys; a logical model with crow's feet and logical types, or Mermaid's erDiagram pasted in, gets there the same way. Double-click a table's card to change its columns, drag a reference to another table for a foreign key, and write its comment, in Markdown, right on the card. Every change waits in one script you read before it runs.

A table edited on its diagram card: its columns as rows to change, a new column, and + Reference to draw a foreign key

A diagram of a rental database: tables as cards joined by their foreign keys, with the diagram's properties on the right

Trace what a table is joined to, style cards and lines, add notes in Markdown, and see what changed in the database since the diagram was drawn. Queries, whole scripts and extensions go on the canvas too: a SELECT shows its rows there, anything else runs when you ask, a change confirmed first. Draw the whole diagram as by hand with its sketch style, ask it questions and change it from the console in JavaScript, and copy it as PNG, SVG or Mermaid.

A Database Dictionary

What a table is for, why a column can be empty, which function the nightly job calls: that knowledge usually lives in people's heads. A Database Dictionary gathers it in one Markdown file of a connection, beside your code, that PlumeSQL keeps up to date as the database changes.

  • Written where you read it. Click a table's or a column's comment and write it in place; it goes to the database as COMMENT ON through the same pending changes as every other change.
  • Shared like code. GitHub shows the file as a page, a teammate's edit there comes back as a change to run, and AI agents working in the repository read it like the rest of your code.
  • Shaped your way. Which schemas and objects it holds, its statistics, its relationships as a Mermaid diagram, its columns, headings and links, each chosen in Properties.

A Database Dictionary of dvdrental: the rental table's comment and statistics, its columns with types and comments, keys linked to the columns they reference

A sample, dvdrental as GitHub shows it: dvdrental.md.

Scripts that set themselves up

A SQL script can carry its own settings in plain comments. Open it and it already knows where to run and how to show the result:

-- @connection reporting
-- @readonly

-- @inputs $1=2026-01-01
-- @extension echarts beside
select date_trunc('day', created_at) as day, count(*) as orders
from orders
where created_at >= $1
group by 1
order by 1;
  • @connection pins the script to a connection, so it can't run on the wrong server by accident, and @readonly keeps it from writing at all. Another @connection line further down, and the rest of the script runs on that server: one script, several databases.
  • @inputs fills in the query's parameters, so it runs without asking.
  • @extension picks how the result is shown: a chart, a pivot, KPI cards, beside the grid or instead of it.

The editor completes annotations as you type and explains each one on hover. The full list is in ACTIONSPEC.md.

Extensions

There are more than 200 of them, and we keep adding more. A few, as they look:

City 3D: films as buildings in districts by category
City 3D: rows as buildings
Map: a hexagon grid over Zagreb, raised by the number of shops
Map: PostGIS on a real map
Vector Space 3D: clusters of embeddings and a point's nearest neighbours
Vector Space 3D: your embeddings
Query landscape: pg_stat_statements in 3D
Query landscape: the costly queries stand out
Storage city: every table as a building
Storage city: your tables by size
Scatter 3D: three numbers at once, a point per row
Scatter 3D: three numbers at once

And the newest, on real data:

Twelve views of the newest extensions: a network of actors, revenue flowing from category to store, rentals on a timeline, an org chart, revenue as rings, price candles, customer segments across four numbers, revenue by country on a world map, customers in three clusters in 3D, RFM segments as a doughnut, sales against the same month a year before, and the world map in the light theme

From the top left: Network graph, Sankey, Timeline, Tree, Sunburst, Candlestick, Parallel coordinates, World map, Clusters in Scatter 3D, RFM segments, Period over period and the world map again, in the light theme.

Some we use a lot:

You install them from the Extensions tab, one by one or in packs like DBA essentials or PostGIS essentials. They're just files, so you can read one before you install it, change it, or send it to a colleague. There's no plugin SDK to learn.

Can't find what you need? Write it. An extension can be a SQL file, a command, or a bit of JavaScript that draws a result. Start with extensions/README.md, and publish it to the Marketplace so anyone can install it.

Install

Download from Releases:

Platform Package
macOS, Apple Silicon .dmg
Windows .msi or setup .exe
Linux .deb, .rpm or .AppImage

The app updates itself, and checks each update's signature before installing it. What is new in each release is in changelog/.

The macOS app is signed and notarized by Apple: it opens on the first double click. The Windows installer is not signed yet: if SmartScreen stops it, choose More info and Run anyway.

From the command line

The Welcome tab adds a plumesql command to your shell. Then:

plumesql .                         # this folder, in the desktop app
plumesql -browser .                # this folder, in a browser tab
plumesql postgres://user@host/db   # open and connect, like psql
plumesql --help                    # everything else

What else it does

  • psql's commands in the editor. \d, \dt, \df, \sf and \conninfo answer right under the line, and the Log's console speaks psql too.
  • A console over your results. JavaScript under the Log, with the last result, the open tab and the database at hand.
  • Your database as files. The object browser is a DDL snapshot on disk, one file per object, to search and compare without a query, its DDL laid out to be read.
  • Make anything from the object tree. New Table, View, Function, Trigger Function and more from any row's right click or the tree's +, each written as a script you read before it runs.
  • Videos you can search. Help > Videos finds the minute of the tour that shows what you're looking for, and plays it from there.
  • Properties for whatever you work on. A script's connection and session, a result's columns and selection with their counts and sums, a setting, a diagram, an object: all in one tab, to read and to change.
  • Foreign data wrappers. Wrappers, servers, user mappings and foreign tables in the object tree, a ready IMPORT FOREIGN SCHEMA, and completion for the options postgres_fdw, file_fdw and mysql_fdw take.
  • PostgreSQL on your machine. The System page lists the servers on your machine, installed or in Docker, and adds one to your connections in a click. No PostgreSQL yet? It starts a sample database in Docker, or installs a server for you.
  • Terminals, as many as you like. In the bottom panel or as a tab of their own.
  • A theme of your own. The Appearance tab shows the window as you change it; save it as a theme extension.
  • In the desktop app, or in your browser. The same PlumeSQL runs in a tab of the browser you already have: plumesql -browser .

See it in action

More, about a minute each: Connections and objects · The SQL editor · Data and the grid · Annotations and extensions · PostgreSQL extensions · Workspace · Diagrams and the Database Dictionary

In the app, Help > Videos searches them all, step by step.

Who makes it

PlumeSQL is made by Vedran Bilopavlović and Kristijan Soldo.

Vedran has worked with databases for 30 years and wrote NpgsqlRest, which serves PostgreSQL functions, tables and SQL files as a REST API. PlumeSQL's comment annotations are the same idea as NpgsqlRest's (ACTIONSPEC.md §14.1).

Nothing here locks you in: a tool is a plain SQL file you can read and run anywhere, and its format is an MIT specification. Every query extension in this repository runs on PostgreSQL 13 to 19, TimescaleDB and Citus on each push:

execute

Tech

  • Go server: connections over the PostgreSQL wire protocol, DDL rendering, the vault. Localhost only, behind a token minted at launch.
  • Svelte 5 interface with Monaco, the editor inside VS Code. PostgreSQL's real parser (libpg_query) and a tree-sitter grammar run in WebAssembly.
  • Tauri shell with the system webview: no bundled browser, no Java.
  • The object browser is a DDL snapshot on disk, so browsing costs the server nothing. Tested against PostgreSQL 13 to 19.

A 14 MB download (about 90 MB for the Linux AppImage), 38 MB installed, the server ready about 40 ms after launch (M4 Pro MacBook).

Privacy

No account, no telemetry. Your connections and data stay on your machine. Passwords live in your project files or an encrypted vault, and never reach the interface. PlumeSQL goes online only for updates and release notes, the extension catalog with its download counts and comments, the video list, the PostgreSQL documentation pages you open, Open VSX when you browse its themes, and YouTube when you press play. An extension's chart libraries and map tiles come only from hosts you allow, and the System page lists every host PlumeSQL reaches. Signing in to GitHub, to comment on extensions and releases, is optional.

Help

  • Questions: Q&A in Discussions
  • About an extension: its own thread under Extensions, where the comments from its page in the app also go
  • About a release: its thread under Announcements, where the comments from its release notes in the app also go
  • Bugs: Issues, or Report a Bug in the app
  • Security: SECURITY.md

License

Everything in this repository (extensions, specifications) is MIT. The PlumeSQL app is free to use and closed source; it shows its terms on first run.

About

PostgreSQL IDE. Extensible, powerful, featherweight, free, no account, for macOS, Windows and Linux

Topics

Resources

Contributing

Security policy

Stars

16 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages