Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Hands-On with PostgreSQL Authorization – Part 2 – Row-Level Security.
You need to use
``` SET my.user = 'user1'; SELECT * FROM todos; ```
And in you RLS you can then use
``` CREATE POLICY owner ON todos USING (user = current_setting('my.user')); ```
There are no comments on this comment yet.
You need to use
``` SET my.user = 'user1'; SELECT * FROM todos; ```
And in you RLS you can then use
``` CREATE POLICY owner ON todos USING (user = current_setting('my.user')); ```