Symptoms
One or more SQL Macros return the following error:
org.postgresql.util.PSQLException: ERROR: permission denied
Cause
The database user associated with your Data Source does not have permission to access the database or table.
Resolution
Grant appropriate permissions to the user.