RLS on UPDATE `WITH CHECK` call function using new row data?
In the WITH CHECK part of an UPDATE when using RLS, how do I pass the incoming/new row data to a function? (or do I need to simply list every column?)
I tried
My function is pretty simple (docs is the name of the table):
I tried
my_function(new) but get an error that "new is not a column". my_function(*) also did not work. My function is pretty simple (docs is the name of the table):