If you prefer code over the blog post, I've put the full application example on GitHub. Would love to hear your thoughts.
https://github.com/simplyblock/example-rls-invoicing
Show HN: Underrated Postgres: Build Multi-Tenancy with Row-Level Security
simplyblock.io