If schema is not PUBLIC, you must grant each function user these additional privileges on schema: READ INSTALL CREATE TABLE TRUNCATE TABLE Testing the Functions