Does anyone know the exact meaning of the "Extra search path" setting in API settings of the dashboard?
chipilov
11/24/2021, 3:04 PM
I have a private schema where I have declared a table (let's say table user profile which references auth.users), a trigger function and a trigger on auth.users
chipilov
11/24/2021, 3:05 PM
The interesting thing is that regardless of whether I add the new schema to the extra search path, the following things happen:
chipilov
11/24/2021, 3:06 PM
1) Any views I declare in the public schema which reference the private table (e.g. in a JOIN clause) work just fine even if I don't qualify them with the schema name. I don't understand why that does works even when I have NOT specified the private schema in the extra search path
chipilov
11/24/2021, 3:07 PM
2) Any triggers which do NOT specifically qualify the functions and/or tables in the private schema fail, even if I've added the private schema to the extra search path
chipilov
11/24/2021, 3:26 PM
I see that the extra search path does take effect for functions in the public schema - it is possible that my problem is that the trigger functions themselves are defined in the private schema and so the extra search path does NOT have an effect on them?
chipilov
11/24/2021, 3:56 PM
I tried moving my triggers to the public schema and there was no change - I guess I will open a discussion on GitHub with a suggestion to allow extra serach paths for triggers