With postgres you can use schemas to keep tenants separate and use RLS on shared data.