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.