Tenant pinned per transaction
The active tenant is set inside the transaction, so a pooled connection can never leak one tenant's scope into another's request.
BEGIN;
SELECT tenant_session('org_3366ddeb…');
-- queries now scoped to this org only
COMMIT;
this is EstiWright
It's in the works.
EstiWright is in development — join the waitlist for early access.