Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Типы данных SQL

Типы данных, поддерживаемые AngaraBase. Наличие OID в виртуальном pg_catalog (для интроспекции) не означает поддержку — в таблицу ниже включены только реально пригодные к использованию типы.

Поддерживаемые типы

ТипOIDpg_typeofСтатусОписание
bool16boolStableLogical boolean (true/false).
bytea17byteaStableVariable-length binary string.
int820int8Stable64-bit signed integer (bigint).
int423int4Stable32-bit signed integer (integer).
text25textStableVariable-length character string.
float8701float8StableDouble-precision floating-point.
int221int2Baseline16-bit signed integer (smallint).
float4700float4BaselineSingle-precision floating-point (real).
numeric1700numericBaselineExact numeric (Decimal-backed); explicit casts canonicalize.
uuid2950uuidBaselineUniversally unique identifier; explicit casts only.
varchar1043varcharBaselineVariable-length character string (text-backed).
bpchar1042bpcharBaselineCharacter string CHAR(n) (text-backed).
mvarchar46001mvarcharBaseline1C-compatible national VARCHAR: UTF-16LE semantics, case/trailing-space-insensitive collation, mvarchar(N).
date1082dateBaselineCalendar date (text-backed; minimal validation).
timestamp1114timestampBaselineDate and time, no time zone (text-backed).
timestamptz1184timestamptzBaselineDate and time; parsed for casts / AS OF (tz not preserved).

Planned

Зарегистрированы для интроспекции, но пока не пригодны к использованию (CAST к ним возвращает 0A000):

  • time (time) — Time of day (no time zone).
  • interval (interval) — Time span.
  • json (json) — Textual JSON data (json_* functions return text today).
  • jsonb (jsonb) — Binary JSON data.