HV007
Read PG 18 manual ↗fdw_invalid_column_name
- SQLSTATE
- HV007
- Condition name
- fdw_invalid_column_name
- Class
- Foreign Data Wrapper Error (SQL/MED)
- Source macro
- ERRCODE_FDW_INVALID_COLUMN_NAME
- Evidence
- Definition only
English SQLSTATE atlas: authored explanations and source/runtime evidence are separate from the manual definitions. View source ↗
At a glance
HV007 is an FDW-specific invalid-column-name condition. The 18.6 core/contrib scan found no direct report group, so the wrapper that validates the name and its message must be identified from the actual deployment.
Meaning
The name reached the FDW API but violates the wrapper's accepted descriptor or remote naming rules. That is different from HV005, where a name is valid in form but cannot be found, and from core 42703 on a local SQL query.
Messages and diagnostics
No fixed PostgreSQL core message is confirmed. Preserve the original quoted/unquoted name, case folding, foreign table, callback phase, and wrapper version.
Diagnosis
Inspect the wrapper's name parser and remote identifier rules. Compare pg_attribute.attname, generated query identifiers, and any quoted or case-sensitive remote names. Locate the wrapper's pinned source before assigning a repair to PostgreSQL itself.
Response
Use a name accepted by both the local foreign-table definition and the remote system, or configure the wrapper's explicit name mapping. Rebuild the foreign descriptor after changing metadata; repeating the same statement is not useful.
Versions
HV007 is present from 9.1.0 through 18.6 and 19 Beta 3. The available pre-9 source definition scan did not observe this SQLSTATE.
Sources
errcodes.txt— definition, SHA-2566e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba.fdwapi.h— callback boundary.- Structured evidence — bounded scan and source boundary.
Source evidence
Evidence belongs to the frozen source and runtime versions listed here. It is not a runtime verification of the selected manual version.
HV007 is fdw_invalid_column_name in Class HV.
Method: Read the fixed definition row.
No direct HV007 report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.
Method: Compare resolved report groups with the macro mapping.
Limits: Name rules are wrapper-specific. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE.
- src/backend/utils/errcodes.txt · REL_18_6 ·
724edf9bde9d356724ad384a2e196edc3c9f80f7 - src/include/foreign/fdwapi.h · REL_18_6 ·
724edf9bde9d356724ad384a2e196edc3c9f80f7 raw/calls/REL_18_6.jsonl· ·
Message templates
No extracted message template is attached to this condition.
Reproduction & repair cases
No reproduction case is attached to this condition.
Recorded runtime evidence
No runtime observation is attached to this entry.
Version history 1
- PG 9.0 → 9.1added
Definition snapshot: english-manuals:0322e787f6bd533dd52483700db… · English manual source