I am going to make another suggestion here. We should probably suggest that no reporting functions should run as security definer. This allows the same data to be accessed relationally as would be retrieved by the function. Best Wishes, Chris Travers