If a user can't log in to a DBMS, they don't have query permission.
weren't they having access through peertube? you can't revoke access to something that needs it.
sure, they could run dedicated postgreses for each service, but I think this kind of bug is so rare that it is not worth wasting lots of RAM on that, and even then, it would rather just deter people from hosting services they want.
also at that point, the question arises why not just run everything in qubes OS, each service in its own VM and its own VLAN. and the response is that it is unfeasible, and it was unfeasible even before the RAM shortage, unless you have enterprise hardware with 100+ GB RAM, consuming way too much power compared to a server made from desktop PC hardware, even when there is no meaningful CPU load.
But it's not that much more, and you can make it fit easily.
I run 3 separate database servers on the same OS because I made a bad decision at one point, and I regret it. I just don't have time to merge them.