This is in version 7.2. Please let me know if I'm overlooking something. Goal is to create a User Defined Aggregate in Schema B and view in Schema A that uses that UDA. If Schema B is in user's search path, the view works. But if schema B is not in the user's search path, queries against view fail.
CREATE VIEW A.BAR AS SELECT B.FOO(5);
SET SEARCH_PATH = A,B;
SELECT * FROM A.BAR; -- this works
SELECT B.FOO(5); -- this works
SET SEARCH_PATH = A;
SELECT B.FOO(5); -- this works
SELECT * FROM A.BAR; -- but this doesnt:
ERROR 3457: Function FOO(INTEGER) does not exist, or permission is denied for FOO(INTEGER)