Postgresql Data Types
Postgresql Data Types
Data Type
Name
bigint
bigserial
bit
bit varying(n)
boolean
box
bytea
character varying(n)
character(n)
cidr
circle
date
double precision
inet
integer
interval(p)
line
lseg
macaddr
money
numeric [ (p, s) ]
path
point
polygon
real
smallint
serial
text
time [ (p) ] [ without time
zone ]
time [ (p) ] with time zone
timestamp [ (p) ] without time
zone
timestamp [ (p) ] [ with time
zone ]
Alias
int8
serial8
varbit(n)
bool
varchar(n)
char(n)
float8
int, , int4
decimal [ (p, s) ]
float4
int2
serial4
Description
signed eight-byte integer
autoincrementing eight-byte integer
fixed-length bit string
variable-length bit string
logical Boolean (true/false)
rectangular box in the plane
binary data
variable-length character string
fixed-length character string
IPv4 or IPv6 network address
circle in the plane
calendar date (year, month, day)
double precision floating-point number
IPv4 or IPv6 host address
signed four-byte integer
time span
infinite line in the plane (not fully implemented)
line segment in the plane
MAC address
currency amount
exact numeric with selectable precision
open and closed geometric path in the plane
geometric point in the plane
closed geometric path in the plane
single precision floating-point number
signed two-byte integer
autoincrementing four-byte integer
variable-length character string
time of day
timetz
timestamp
timestamptz