PostgreSQL Data Types: Use and understand types effectively

published on Mon Jan 25 2021

PostgreSQL supports a plethora of different data types. We’ll cover the basic types here and provide some guidance around when to use which.

Characters

Numbers

Integers

Autoincrementing Integers

They are ideally used as primary keys in columns that need autogenerated unique values

Floating Point Types

Decimal numbers are denoted with their precision and scale values.

The types are:

Monetary Type

money

Dates and Times

Booleans

Possible values of true and false

Other

These are advanced types for discussion another time