pgquery

pgquery / pgquery vs pgAdmin

Guide · Comparison

pgquery vs pgAdmin

pgAdmin is the reference PostgreSQL admin tool and covers far more ground. pgquery is smaller and faster to run, with a few screens pgAdmin doesn’t have. Here is the honest breakdown.

pgquery and pgAdmin 4
FeaturepgquerypgAdmin 4
Runs asOne Go container; open in any browserDesktop app, or a Python web server
Settings and saved connectionsPartlyIn your browser onlyYesOn the server, per user
Own login and user accountsNoYes
Many servers in one treePartlySaved connections listYes
SSH tunnelNoYes
SQL editor with autocompleteYesMonaco, schema-awareYes
Visual EXPLAINYesTree, time share, misestimatesYesGraphical plan
ER diagramYesExport as SVG / PNG plateYesERD tool, can generate SQL
Row Level Security policiesYesYes
Performance advisorYesUnused indexes, bloat, cache, seq scansPartlyServer activity dashboard
Security advisorYesScored auditNo
pg_stat_statements viewYesPartlyVia SQL
Backup and restore (pg_dump)NoYes
Import / export CSVPartlyExport onlyYes
PL/pgSQL debuggerNoYes
Schema diffNoYes
Maintenance (VACUUM, ANALYZE, REINDEX) dialogsPartlyRun them in the editorYes
LicenseMITPostgreSQL License
Yes Partly No · Checked against each project’s documentation, November 2026. Corrections welcome on GitHub.

Where pgquery wins

  • Up in one command, with no Python runtime and no settings database.
  • A Monaco editor with tabs that survive a reload, plus history and saved queries.
  • Performance and security advisors that tell you what to fix, not just graphs.
  • Schema changes made through forms are shown as SQL before they run.

Where pgquery loses

  • pgAdmin has user accounts; pgquery has no login of its own.
  • Backup / restore, the PL/pgSQL debugger, schema diff and CSV import are pgAdmin-only.
  • SSH tunnels and server groups: pgAdmin manages a whole fleet; pgquery is one database at a time.
  • pgAdmin is maintained by the PostgreSQL community and has a decade of hardening.

Use both

They don't conflict. Run pgquery for daily querying and the advisors, and keep pgAdmin around for backups and debugging:

docker run -p 54280:54280 ghcr.io/hxndrik/pgquery

pgquery listens on port 54280.

Questions

Can pgquery replace pgAdmin?

For querying, browsing data, roles, policies, indexes and the advisors, yes. For backups, debugging, schema diff and multi-user setups, pgAdmin still does more.

Is pgquery a fork of pgAdmin?

No. It is a separate project: a React frontend and a small Go proxy.

More chapters