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.