Skip to main content

Overview

Relyt provides a variety of native data types, including numeric, date and time, character, and Boolean types.

The following table provides a general overview of each type.

NameStorage sizeValue rangeDescription
bigint8 bytes-9223372036854775808 to 9223372036854775807Large-range integers.
boolean1 bytetrue/false, t/f, yes/no, y/n, and 1/0Whether a condition is true or not.
date4 bytes0001-01-01 to 9999-12-31Measures the number of days since January 1, 1970.
decimalVariable128-bit signed integers with up to 38 digits of precisionExact numbers with user-specified precision.
double precision8 bytes15 decimal digits precisionNumbers with a fractional part.
integer4 bytes-2147483648 to +2147483647Integers. This type is the common choice for storing integers, because it offers the best balance between range, size, and performance.
interval16 bytes-178000000 years to 178000000 yearsThe time interval.
It is sensitive to time zone differences.
real4 bytes6 decimal digits precisionSingle-precision floating-point numbers.
smallint2 bytes-32768 to +32767Small-range integers.
textMaximum: 2 MBStrings of any lengthVariable-length character strings.
timestamp8 bytes0001-01-01 00:00:00 to 9999-12-31 23:59:59The date and time, excluding the time zone.
timestamp with time zone8 bytes0001-01-01 00:00:00~9999-12-31 23:59:59 (UTC)The date and time, including the time zone.
varcharMaximum: 2 MBStrings of any lengthVariable-length character strings.
byteaMaximum: 500 MBBinary data of any lengthVariable-length binary data.
roaringbitmapMaximum: 500 MBA collection of integer valuesEfficient, compressed bitmap structure.
important

Relyt does not allow defining columns of data type interval in DDL because Relyt does not support the storage of intervals.