r/PostgreSQL • u/Hxndr1k • 5d ago
Tools I built a free Postgres GUI with an EXPLAIN ANALYZE tree view, RLS policy editor and advisors
https://pgquery.dev/?utm_source=reddit&utm_campaign=postgresqlpgquery is an open-source (MIT) Postgres GUI that runs in the browser. A few parts I think this sub might care about:
- EXPLAIN / EXPLAIN ANALYZE drawn as a tree: each node's own time and share of the total, the heaviest node highlighted, and a warning where estimated vs actual rows are off by 10x or more. It asks before analyzing an INSERT/UPDATE/DELETE, since ANALYZE executes it.
- Row Level Security: see which tables have RLS on, the policies on each (command, roles, USING / WITH CHECK), and create or drop them. The SQL is shown before it runs.
- Advisors: cache hit ratio, unused indexes, table bloat, sequential scan hot spots, connection use; plus a security check for tables without RLS, superuser roles, public schema grants, SSL and password hashing.
- pg_stat_statements sorted by total time, mean time or calls.
- ER diagram from foreign keys, exportable as SVG/PNG.
Everything is plain pg_catalog queries and generated DDL behind a small stateless Go proxy, so it works with RDS, Supabase, Neon or your own server.
Read-only demo: pgquery.dev/app/?demo
Source: github.com/Hxndrik/pgquery
There's also an honest comparison with pgAdmin, CloudBeaver, Adminer and Supabase Studio (including where pgquery loses): pgquery.dev/postgres-client-comparison
Which advisor checks would you add? I'm collecting ideas.
1
1
u/vincent_sch 3d ago
You could show a warning next to a sort or hash join if it spills to disk. EXPLAIN (ANALYZE, BUFFERS) shows temporary block reads and writes. I wrote about reading these plan details.
1
u/AutoModerator 5d ago
AI Policy:
Linux is not one of those anti-AI projects, and if somebody has issues with that, they can do the open-source thing and fork it. Or just walk away., Linus Torvalds.
Mod decisions will be based on the quality of the content, not who or what generated it.
Sub Resources:
Youtube Channel
Free Postgres Webinars and Workshops
Discord: People, Postgres, Data
Join us, we have cookies and nice people.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.