RLS policy for insert to check given column value?

Can get a column value for an insert command and use it in a policy's with check based on the value?

For example, if a column name is color, then I would like to allow the insertion only if the value is 'red'.
Was this page helpful?