The error that I get is "service_users.user_id doe...
# help
o
The error that I get is "service_users.user_id does not exist. But it does exist...kind of weird
g
Do you have RLS on service_users?
o
Not yet
Do I need to activate them first?
g
No, but RLS on those tables could prevent you from reading them, depending on how you have it set.
Are all the tables in the public schema?
o
Oh yeah, RLS goes from top to bottom, good point
g
Sometimes you need a security definer function to check ids and such in tables you don't want users having read access to.
But that is for the future, if you have it off
Are you getting this error writing the policy?
o
I get the error when I click on save_policy, and the error: Error adding policy: column service_users.user_id does not exist
g
check spelling, try putting public.service_users in front of both cases (should't be needed though)
o
Good point, let me try it
g
I just tested this on a table with check on another table and it goes thru. (EXISTS ( SELECT 1 FROM notes WHERE notes.uid = uid())) Are you sure on spelling/caps etc.?