Open bangdragon opened 1 month ago
Oh this is interesting. I think this may be caused by this line:
-- Enable the db_pre_request hook for the authenticator role
ALTER ROLE authenticator
SET
pgrst.db_pre_request TO 'db_pre_request';
Specifically that the function name does not include the schema. I will have to do some tests and see if that's what it is. If so, this is a bug in need of fixing. Thanks for the report!
When you fix it
I create the extension in my schema called rbac. Then it show error: no moddatetime extension found, then I install moddatetime in schema rbac. And install the supabase_rbac extension successfully. Then I login in my app and get this error in log at supabase dashboard at postgres log tab:
But I can see the db_pre_request function name in tab function at schema rbac
Also, at supabase dashboard in tab auth, it show error log: