
PostgreSQL uses object identifiers as primary key systems when performing specialized input and output operations: Name You can also create custom range types by using other data types as a basis. Range of times and dates with a time zone. Range of times and dates without a time zone.

Range of user-specified precision decimals.

Range data types use discreet or continuous ranges of other data types. Similar to array data types, you can also declare, search, and modify composite values. CompositeĬomposite data types allow you to use a row or record of a table as a data element. You can declare, modify, and search arrays as you would any other column in the database. The array data type lets you define a column of a table as a multidimensional array that can use any base, enumerated, or composite data type. Slower to insert into the database, but indexing support and lack of reprocessing make retrieval significantly faster. jsonb: Represents JSON data in a binary format.You can quickly insert it into the database, but it is relatively slow to retrieve due to reprocessing.

This data type saves data exactly the way it is (including whitespace).
Data types in postgresql mac#
PostgreSQL uses network address data types to store IPv4, IPv6, and MAC addresses: Name It consists of several groups of four, eight, and twelve digits, separated by hyphens: Stores a bit string of a varying length, up to n characters.Ī UUID (Universally Unique Identifiers) is a set of 32 digits created by an algorithm. Stores a bit string with a fixed length of n characters. Unlike other data types, you can create enumerated types using the create type command: CREATE TYPE year AS ENUM ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') Bit Stringīit string type stores strings of 1's and 0's, used to store or visualize bit masks: Name EnumeratedĮnumerated data types consist of a static, ordered set of values, such as numbers from 1 to 10 or months in the year. It can hold true (1), false (0), or unknown (null) values. BooleanĪ Boolean data type is declared using bool or boolean keywords.
Data types in postgresql plus#
PostgreSQL can save variable-length binary strings as the bytea data type, taking 1 or 4 bytes plus the size of the actual binary string. Date is the only exception, with a resolution of one day, counted according to the Gregorian calendar: Name PostgreSQL Supports all the standard SQL date and time data types, with a resolution of 1 microsecond or 14 digits. Note: Using floating-point numbers with the monetary data type is not recommended due to the potential for rounding errors. This type stores up to 8 bytes of data with a range of -92233720368547758.08 to +92233720368547758.07 and use numeric, integer, and bigint data types as values. The monetary data type stores a numeric amount of money with fixed fractional precision. Up to 16383 digits after the decimal point Up to 131072 digits before the decimal point.

