Show HN: Underrated Postgres: Build Multi-Tenancy with Row-Level Security
https://www.simplyblock.io/blog/underated-postgres-multi-tenancy-with-row-level-security/
Utilizing Postgres' RLS feature to isolate user data instead of easy-to-forget where-clauses, is such an underrated use case, I really wonder why not more people use it.If you prefer code over the blog post, I've put the full application example on GitHub. Would love to hear your thoughts.
(
4 comments
| 6 points
| on HN
)
I built multi-tenant services and never used RLS because it's complicated.
Like many things in PG, they aren't always easy to get right away I remember my first time with it years and years ago.
Happy to get any idea on how to make it even better!