SQL Types
The information below indicates bit.io's support of PostgreSQL data types. If you would like to see a currently unsupported data type on bit.io, you can send a feature request to [email protected]
Integer & Float Types
Numeric types in PostgreSQL include integers, floating-point numbers, and decimals.
Name | Supported | Size | Description | Range |
---|---|---|---|---|
| ✓ | 2 bytes | small-range integer | -32768 to +32767 |
| ✓ | 4 bytes | standard integer | -2147483648 to +2147483647 |
| ✓ | 8 bytes | long range integer | -9223372036854775808 to +9223372036854775807 |
| ❌ | variable | user defined precision number | up to 131072 digits to the left of the decimal point and 16383 digits to the right of the decimal point |
| ❌ | variable | user defined precision number | up to 131072 digits to the left of the decimal point and 16383 digits to the right of the decimal point |
| ✓ | 4 bytes | floating-point numeric | 6 decimal digits of precision (around 1E-37 to 1E+37) |
| ✓ | 8 bytes | floating-point numeric | 15 decimal digits of precision (around 1E-307 to 1E+308) |
| ❌ | 2 bytes | small auto-incrementing integer | 1 to 32767 |
| ❌ | 4 bytes | standard auto-incrementing integer | 1 to 2147483647 |
| ❌ | 8 bytes | large auto-incrementing integer | 1 to 9223372036854775807 |
For more information about numeric types, reference the PostgreSQL documentation.
Character Types
Character types in PostgreSQL include fixed and variable length strings.
Name | Supported | Description |
---|---|---|
| ✓ | variable length string of characters with limit |
| ✓ | fixed length string of characters |
| ✓ | variable length string with unlimited length |
For more information about character types, reference the PostgreSQL documentation.
Binary Data Types
Binary data types in PostgreSQL include binary strings.
Type | Supported | Size | Description |
---|---|---|---|
| ✓ | 1 or 4 bytes + length of binary string | binary string |
For more information about binary types, reference the PostgreSQL documentation.
Date and Time Types
Date/Time types in PostgreSQL include the following:
Type | Supported | Size | Description |
---|---|---|---|
| ✓ | 8 bytes | date and time without a time zone |
| ✓ | 8 bytes | date and time with time zone |
| ✓ | 4 bytes | date without time |
| ✓ | 8 bytes | time of day without time zone |
| ✓ | 8 bytes | time of day with time zone |
| ❌ | 8 bytes | time interval |
For more information about date/time types, reference the PostgreSQL documentation.
Boolean Types
Type | Supported | Size | Description |
---|---|---|---|
| ✓ | 1 byte | true or false value |
For more information about boolean types, reference the PostgreSQL documentation.
Bit String Types
We do not currently support bit string types. Bit string types in PostgreSQL include the following:
Type | Supported | Size | Description |
---|---|---|---|
| ❌ |
| fixed length sequence of bits |
| ❌ |
| variable length sequence of bits |
For more information about bit string types, reference the PostgreSQL documentation.
JSON Types
JSON types in PostgreSQL include the following:
Type | Supported | Description |
---|---|---|
| ✓ | JSON (JavaScript Object Notation) data, stored as a copy of the input text |
| ✓ | JSON data, stored in binary format |
For more information about binary types, reference the PostgreSQL documentation.
Updated over 1 year ago