In a fictional support tool, case_viewer may read case_id and status on reporting.cases. The tool starts generating a wildcard projection after a schema change adds internal_notes. A privilege inquiry can check that column without fetching case data.
SELECT has_column_privilege('case_viewer', 'reporting.cases',
'internal_notes', 'SELECT');
False supports the projection mismatch if the original denial used that effective role and table. List the approved fields explicitly if the tool still needs only those fields. If it now filters or sorts on another column, inspect that reference too. PostgreSQL requires SELECT on columns read by the query, including columns used outside the result list. PostgreSQL GRANT ยท PostgreSQL SELECT permissions