Type OIDs

NodeDB maps its types to PostgreSQL OIDs for pgwire compatibility.

NodeDB TypePostgreSQL TypeOID
STRINGtext25
INTint820
FLOATfloat8701
BOOLbool16
TIMESTAMPtimestamp1114
TIMESTAMPTZtimestamptz1184
INTERVALinterval1186
UUIDuuid2950
DECIMALnumeric1700
ARRAYjsonb3802
OBJECTjsonb3802
GEOMETRYbytea17
VECTORfloat4[]1021

TIMESTAMP (OID 1114) is timezone-naive. TIMESTAMPTZ (OID 1184) is UTC-normalised. Use TIMESTAMPTZ for wall-clock event times; TIMESTAMP for values that are inherently local (e.g. a schedule expressed in the user's timezone before conversion).

Complex types (ARRAY, OBJECT) are serialized as JSONB over pgwire. GEOMETRY is serialized as WKB (bytea). VECTOR is serialized as a float4 array.