SET app.tenant_id = 'acme'; SET SELECT id, tenant_id, amount FROM invoices ORDER BY id; id | tenant_id | amount ----+-----------+-------- 1 | acme | 100 2 | acme | 250 3 | globex | 400 4 | globex | 75 (4 rows)