select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SQLSTATE / CLASS HV · FOREIGN DATA WRAPPER ERROR (SQL/MED)

fdw_invalid_string_length_or_buffer_length

SQLSTATE
HV090
Condition name
fdw_invalid_string_length_or_buffer_length
Class
Foreign Data Wrapper Error (SQL/MED)
Source macro
ERRCODE_FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH
Evidence
Definition only
Analysis & operational context

English SQLSTATE atlas: authored explanations and source/runtime evidence are separate from the manual definitions. View source ↗

<h1>HV090 — fdw_invalid_string_length_or_buffer_length</h1>

At a glance

HV090 identifies an invalid string length or buffer length at an FDW boundary. The locked 18.6 core/contrib call scan has no resolved HV090 report group, so it does not establish a native buffer check or message.

Meaning

The condition can concern a string length, a destination buffer, or a wrapper-defined length field. The definition does not tell whether the invalid value was supplied by a remote response, a driver, or local wrapper code.

Messages and diagnostics

No resolved 18.6 core/contrib message variant was found. Preserve the complete diagnostic, length and buffer context if exposed, encoding or type context, callback phase, and wrapper/driver version.

Diagnosis

Trace the wrapper's length validation and allocation boundary. Compare the value with the bounds and units used by that implementation, and distinguish bytes from characters only when the source or diagnostic supports it.

Response

Correct the producer or option that supplies the invalid length, or use the wrapper's supported buffer/encoding path. Avoid truncating a value blindly; confirm the wrapper's contract and whether a remote request has already been sent.

Versions

HV090 is present in the locked definition snapshots from 9.1.24 through 18.6 and 19 Beta 3, with known_present_by 9.1.0. The available pre-9 definition material does not establish an exact introduction release.

Sources

  • errcodes.txt — definition, SHA-256 6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba.
  • fdwapi.h — generic FDW callback boundary.
  • Structured evidence — fixed 18.6 sources and bounded scan.

Source evidence

Evidence belongs to the frozen source and runtime versions listed here. It is not a runtime verification of the selected manual version.

HV090 is fdw_invalid_string_length_or_buffer_length in SQL/MED Class HV.

Method: Read the fixed errcodes definition row and macro.

src.errcodes.18.6

The condition name identifies an invalid FDW string or buffer length. The length units, buffer owner, and validation path remain implementation-specific.

Method: Read the fixed FDW callback signatures and FdwRoutine structure.

Limits: Generic API context is background only and does not prove an emitting path for this SQLSTATE.

src.fdwapi.18.6

No resolved HV090 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.

Method: Compare resolved report groups with the fixed macro mapping.

Limits: This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim.

src.calls.REL_18_6 src.errcodes.18.6

The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.

Method: Compare the canonical release-definition facts with the available pre-9 source boundary.

Limits: Definition presence does not prove runtime use.

src.errcodes.18.6

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
  1. PG 9.0 → 9.1added

Definition snapshot: english-manuals:c502ddd3b2fb4d7b82a11831db9… · English manual source