PostgreSQL supports the following data types:
Boolean
Character
Number
Temporal - date and time-related data types
Special types
Array
A Boolean data type can hold one of two possible values: true (t) or false (f). In case the value is unknown, the NULL (space) value is used.
Use boolean or bool keyword when you declare a column that has Boolean data type.
True = 1, yes, y, t, true
False = 0, no, n, f, false
A single character: char
Fixed-length character strings: char(n)
If you insert a string that is shorter than the length of the column, PostgreSQL will pad space. if you insert a string that is longer than the length of the column, PostgreSQL will issue an error.
You can store up to n characters with variable-length character strings. PostgreSQL does not pad spaces when the stored string is shorter than the length of the column.
Two distinct types of numbers:
The temporal data types store date and time-related data * date stores date data
time stores time data
timestamp stores date and time
interval stores the difference in timestamps
timestamptz store both timestamp and timezone data