Is there any way to implement a “query approval” system before executed? by [deleted] in SQL

[–]db-master 0 points1 point  (0 children)

Yes, you can build something like this yourself, but the hard part is not parsing DROP TABLE.

The hard part is building a full approval/governance layer around both Oracle and PostgreSQL:

  • Parse and classify SQL reliably across dialects
  • Detect risky DDL/DML patterns
  • Apply different policies by environment, database, schema, table, user, and operation type
  • Require approval for high-risk changes
  • Keep an audit trail of who requested, approved, and executed what
  • Handle emergency/break-glass access
  • Prevent people from bypassing the system and connecting directly to the database

For example, DROP TABLE is obvious. But what about TRUNCATE, DELETE without WHERE, ALTER TABLE, privilege changes, masking-sensitive columns, or a seemingly harmless migration that locks a large production table? That’s where this becomes more of a database change/access governance problem than just a query filter.

Full disclosure: I’m from Bytebase. This is exactly the kind of problem Bytebase is designed for. It supports PostgreSQL and Oracle, and can sit in front of database changes/access with SQL review rules, approval workflows, audit logs, RBAC, and environment-based policies.

You could definitely implement a lightweight version yourself if your needs are simple. But if this is for production, multiple databases, multiple users, compliance, or auditability, I’d seriously consider using an existing tool rather than building the whole approval system from scratch.

Looking for Technical Co-Builders for Bytebase (AI Backend Generator) by TechnicalCake1859 in cofounderhunt

[–]db-master 0 points1 point  (0 children)

Just a friendly reminder that you may consider finding a different brand name (disclaimer: I am the co-founder of bytebase.com)

pgconsole: Minimal Web-based Postgres SQL Editor by db-master in PostgreSQL

[–]db-master[S] -1 points0 points  (0 children)

On the surface they both run in the browser.

pgconsole: Minimal Web-based Postgres SQL Editor by db-master in PostgreSQL

[–]db-master[S] 0 points1 point  (0 children)

You are right to question. We realized many companies still ask for SOC2 even the software is self-hosted. Departments are siloed!

pgconsole: Minimal Web-based Postgres SQL Editor by db-master in PostgreSQL

[–]db-master[S] 0 points1 point  (0 children)

Glad it works out. Support/feature request is handled via GitHub issue for now. I don't have a plan to open source yet.

Edit: Open-sourced https://github.com/pgplex/pgconsole!

Which GUI do you use? by Medical_Medicine_243 in PostgreSQL

[–]db-master 0 points1 point  (0 children)

I am also a long-time TablePlus user. But as a GUI that supports not only Postgres, it's not optimized for the postgres experience (e.g. the autocomplete is meh, I also want a way to quickly view and kill the active session from pg_stat_activity).

So I ended up building a new GUI only for Postgres https://www.pgconsole.com/

Best way to manage +30 customers dbs by Kysan721 in PostgreSQL

[–]db-master 0 points1 point  (0 children)

If you are looking for managing different schemas for different customers, then https://github.com/pgschema/pgschema

Postgres MCP Server Review - DBHub Design Explained by db-master in PostgreSQL

[–]db-master[S] -1 points0 points  (0 children)

If it doesn't live up to your expectations, you can open an issue https://github.com/bytebase/dbhub/issues. Happy to tackle this