Thanks for prompt reply. Yes that worked - I’m kicking myself for such a silly mistake - but obviously the privilige error threw me… is that catchall error that can mean many things?
The issue here is that "a" could refer to a function in one of the schemas in your search_path.
If you check SHOW search_path; there may be some schema to which user xyz does not have access.