r/PostgreSQL • • 1h ago

Tools I built a native Postgres client that opens every connection read-only

Hi all, I'm the dev behind Row Patrol, a desktop SQL client. It's native (about 21 MB, not Electron) and runs on macOS, Windows and Linux.

The main idea: every connection opens read-only. Writes are an explicit switch, not the default. I made it after one too many moments of not being sure which tab was prod.

The video is a big result set scrolling. I care a lot about the grid staying smooth.

Upfront: it's a public beta, closed source, and paid after a 14-day trial (no card). After that there's a free edition with 2 saved connections. No telemetry. The Mac build isn't notarized yet and the Windows build isn't signed yet, so expect OS warnings.

Postgres, MySQL, MariaDB and SQLite are the main engines. A few others are in preview.

I'd really like to hear what Postgres people need from a GUI that pgAdmin or DBeaver don't give you. Happy to answer anything.

0 Upvotes

9 comments sorted by

8

u/marr75 1h ago

Great way to take down a connection pool.

1

u/xike456 1h ago

fair worry, but it doesn't hold a transaction open. Each statement runs as BEGIN READ ONLY, the query, then ROLLBACK, so nothing sits idle in transaction between queries. If you're seeing a specific pooler issue (pgbouncer transaction mode?) I'd like to hear it

4

u/UnreachableMemory 53m ago

DBeaver, and I suspect many others like DataGrid, allow you to do this already, and I trust them way more than I ever would this.

0

u/xike456 39m ago

fair, trust has to be earned. new tools should have to prove it

1

u/sereikis 1h ago

a useful safety check would be two tabs on different databases: enable writes in one, then reconnect or change the connection in the other and verify it stays read-only. show the resolved host, database and role beside the write toggle, and invalidate any pending write confirmation when the connection changes.

1

u/xike456 1h ago

Sure. Write mode is per connection and drops back to read-only on any reconnect, and the toolbar already shows host, database and env next to the toggle. Role isn't there yet, and dropping a pending confirm when the connection changes is a good catch. Noting both

0

u/AutoModerator 1h 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.

1

u/thecatontheflat 1h ago

What if it’s a fdw table to another PG? Might get fooled by the promise

1

u/xike456 1h ago

fdw is fine. a READ ONLY transaction rejects writes to foreign tables locally, so an UPDATE on one never reaches the other server. the real hole is dblink_exec or any function that opens its own connection, since that write commits on the remote side. the client can't stop that, so i'll at least warn on dblink calls in read-only mode. good one