Skip to main content

Module types

Module types 

Source
Expand description

PostgreSQL type OID to Arrow DataType mapping.

Maps PostgreSQL’s internal type OIDs to Apache Arrow data types for zero-copy CDC event conversion. Also provides text-format value parsing for pgoutput protocol data.

Structs§

PgColumn
A column descriptor from a PostgreSQL relation.

Constants§

BOOL_ARRAY_OID
bool[]
BOOL_OID
bool — boolean
BPCHAR_OID
bpchar — fixed-length character (char(n))
BYTEA_OID
bytea — variable-length binary string
CHAR_OID
char — single character (internal type)
CIDR_OID
cidr — IPv4/IPv6 network address
DATE_OID
date — calendar date
FLOAT4_ARRAY_OID
float4[]
FLOAT4_OID
float4 (real) — single precision floating-point
FLOAT8_ARRAY_OID
float8[]
FLOAT8_OID
float8 (double precision) — double precision floating-point
INET_OID
inet — IPv4/IPv6 host address
INT2_ARRAY_OID
int2[]
INT2_OID
int2 (smallint) — 2-byte signed integer
INT4_ARRAY_OID
int4[]
INT4_OID
int4 (integer) — 4-byte signed integer
INT8_ARRAY_OID
int8[]
INT8_OID
int8 (bigint) — 8-byte signed integer
INTERVAL_OID
interval — time interval
JSONB_OID
jsonb — binary JSON data
JSON_OID
json — JSON data
MACADDR_OID
macaddr — MAC address
NAME_OID
name — 63-byte internal name type
NUMERIC_OID
numeric — exact numeric with arbitrary precision
OID_OID
oid — object identifier (unsigned 4 bytes)
TEXT_ARRAY_OID
text[]
TEXT_OID
text — variable-length text
TIMESTAMPTZ_OID
timestamptz — date and time with timezone
TIMESTAMP_OID
timestamp — date and time (without timezone)
TIME_OID
time — time of day (without timezone)
UUID_OID
uuid — universally unique identifier
VARCHAR_ARRAY_OID
varchar[]
VARCHAR_OID
varchar — variable-length character string
XML_OID
xml — XML data

Functions§

pg_type_name
Returns a human-readable name for a PostgreSQL type OID.
pg_type_to_arrow
Maps a PostgreSQL type OID to an Arrow DataType.