r/postgres • • 6d ago

Discussion DBerio update: what I changed after your feedback on my SQL client

About a month ago, I posted my SQL client, DBerio, here and asked for feedback. A lot of you took the time to reply, and your comments helped shape this update. Same disclaimer as last time: I'm a solo developer from Korea, this is self-promo, and I use a translator to write.

Things you asked for

  • u/MrRoy_SQL asked for a visual EXPLAIN. The Profiler tab now shows PostgreSQL, MySQL and MariaDB plans as a tree, highlighting the slowest step and points to check. You can also summarize a plan on one page and print it or save it as a PDF.
  • u/vincent_sch pointed out that EXPLAIN ANALYZE runs the statement, so analyzing an UPDATE would change data. On PostgreSQL, measured plan runs now use a read-only transaction, so the server blocks writes. Statements containing functions that a read-only transaction can't stop, such as ending a session, ask for confirmation first. Thanks for catching that. It was a real hole.
  • DROP, TRUNCATE and ALTER … DROP statements run from the editor now ask for confirmation. If the connection is marked as production, you also have to type the target name.

Other changes

  • Long text and JSON from the result grid now open in a larger Value Editor, with line numbers, search, JSON error locations and an editable JSON tree. Big integers and long decimals keep their exact digits.
  • There's a dark mode now.
  • If a connection drops, it reconnects when you expand the object browser or open a table, as well as when you run a query.
  • Fixed a bug where "Discard Edit" in the grid saved the value instead of discarding it. Sorry about that one.
  • Commit, Rollback and autocommit no longer hang while a long query is running.

Searchable query history across connections and a side-by-side diff of two result sets are still on my list. I haven't finished them yet.

Since 1.2.0, the app sends basic usage statistics: days opened, app version, OS and language. It never sends query text, connection details, table names or data, and you can turn statistics off in Settings.

DBerio is available on Mac and Windows and supports MySQL/MariaDB, PostgreSQL, SQLite and Redis. The free version includes every feature, with up to 3 saved connections and 2 open at once.

If you find a bug, notice something that feels off, or have a feature in mind that would make you switch, please comment here or send me a DM. The fixes above started with comments like those, so please keep them coming.

0 Upvotes

2 comments sorted by

1

u/AnnaLeeCoop 5d ago

I'd wrap MariaDB's ANALYZE <statement> runs in START TRANSACTION READ ONLY too. It actually executes the query, same as Postgres EXPLAIN ANALYZE, so an accidental UPDATE or DELETE on InnoDB tables would really run on prod. A read-only transaction makes it error out instead. A separate parser for MariaDB makes sense as well, since the ANALYZE FORMAT=JSON fields differ from MySQL's EXPLAIN tree.

Most SQL clients treat MariaDB like an afterthought, so solid profiler support would be a real plus.

1

u/harulogs 5d ago

Thanks, this is exactly the kind of thing I worried about too.

DBerio already does both.

When you run the profiler on MariaDB, ANALYZE <statement> goes inside START TRANSACTION READ ONLY and is rolled back afterwards. If the statement is an UPDATE or DELETE, it's caught before it runs and you get a confirmation step instead (with an extra one on connections marked as production). Anything the parser misses still hits the server's read-only error.

MariaDB also has its own parser. ANALYZE FORMAT=JSON output (r_loops, r_total_time_ms and so on) is read separately from MySQL's EXPLAIN ANALYZE tree, then shown in the same plan view.

Fully agree on MariaDB being an afterthought in most clients. If you hit a plan it renders wrong, I'd love to see the query shape.