Skip to main content

Module oid

Module oid 

Source
Expand description

PostgreSQL type OID constants and information_schema helpers.

Constants§

BOOL
BOOL_ARRAY
BYTEA
BYTEA_ARRAY
CHAR
DATE
DATE_ARRAY
FLOAT4
FLOAT8
FLOAT4_ARRAY
FLOAT8_ARRAY
INT2
INT4
INT8
INT2_ARRAY
INT4_ARRAY
INT8_ARRAY
JSON
JSONB
JSONB_ARRAY
JSON_ARRAY
NAME
NUMERIC
NUMERIC_ARRAY
TEXT
TEXT_ARRAY
TIME
TIMESTAMP
TIMESTAMPTZ
TIMESTAMPTZ_ARRAY
TIMESTAMP_ARRAY
TIME_ARRAY
UUID
UUID_ARRAY
VARCHAR
VARCHAR_ARRAY

Functions§

array_element_oid
Returns the element OID for a known array OID, if any.
is_array_oid
Returns true if the OID is a known array type we can decode.
oid_from_information_schema
Map an information_schema.columns.data_type / udt_name pair to a type OID. Prefer querying pg_attribute.atttypid when possible; this is a fallback.