In PostgreSQL, this is included in the SELECT privilege, so show YES or NO depending on whether SELECT is granted.