Closed nene closed 4 months ago
bigint
int8
bigserial
serial8
bit [ (n) ]
bit varying [ (n) ]
varbit [ (n) ]
boolean
bool
box
bytea
character [ (n) ]
char [ (n) ]
character varying [ (n) ]
varchar [ (n) ]
cidr
circle
date
double precision
float8
inet
integer
int
int4
interval
interval [ (p) ]
interval [ fields ] [ (p) ]
interval year to month
interval seconds (50)
json
jsonb
line
lseg
macaddr
macaddr8
money
numeric [ (p, s) ]
decimal [ (p, s) ]
dec [ (p, s) ]
path
pg_lsn
pg_snapshot
point
polygon
real
float4
smallint
int2
smallserial
serial2
serial
serial4
text
time
time [ (p) ]
timetz [ (p) ]
time without time zone
time with time zone
time (p) without time zone
time (p) with time zone
timestamp
timestamp [ (p) ]
timestamptz [ (p) ]
timestamp without time zone
timestamp with time zone
timestamp (p) without time zone
timestamp (p) with time zone
tsquery
tsvector
txid_snapshot
uuid
xml
int[]
int[][]
int[10][10][10]
Builtin data types
bigint
,int8
- signed eight-byte integerbigserial
,serial8
autoincrementing eight-byte integerbit [ (n) ]
fixed-length bit stringbit varying [ (n) ]
,varbit [ (n) ]
variable-length bit stringboolean
,bool
logical Boolean (true/false)box
rectangular box on a planebytea
binary data (“byte array”)character [ (n) ]
,char [ (n) ]
fixed-length character stringcharacter varying [ (n) ]
,varchar [ (n) ]
variable-length character stringcidr
IPv4 or IPv6 network addresscircle
circle on a planedate
calendar date (year, month, day)double precision
,float8
double precision floating-point number (8 bytes)inet
IPv4 or IPv6 host addressinteger
,int
,int4
signed four-byte integerinterval
time spaninterval [ (p) ]
interval [ fields ] [ (p) ]
likeinterval year to month
orinterval seconds (50)
json
textual JSON datajsonb
binary JSON data, decomposedline
infinite line on a planelseg
line segment on a planemacaddr
MAC (Media Access Control) addressmacaddr8
MAC (Media Access Control) address (EUI-64 format)money
currency amountnumeric [ (p, s) ]
,decimal [ (p, s) ]
exact numeric of selectable precisiondec [ (p, s) ]
(not documented???)path
geometric path on a planepg_lsn
PostgreSQL Log Sequence Numberpg_snapshot
user-level transaction ID snapshotpoint
geometric point on a planepolygon
closed geometric path on a planereal
,float4
single precision floating-point number (4 bytes)smallint
,int2
signed two-byte integersmallserial
,serial2
autoincrementing two-byte integerserial
,serial4
autoincrementing four-byte integertext
variable-length character stringtime
time of daytime [ (p) ]
timetz [ (p) ]
time without time zone
time with time zone
time (p) without time zone
time (p) with time zone
timestamp
date and timetimestamp [ (p) ]
timestamptz [ (p) ]
timestamp without time zone
timestamp with time zone
timestamp (p) without time zone
timestamp (p) with time zone
tsquery
text search querytsvector
text search documenttxid_snapshot
user-level transaction ID snapshot (deprecated; see pg_snapshot)uuid
universally unique identifierxml
XML dataRange types
Object identifier types
Array types
int[]
,int[][]
,int[10][10][10]
User-defined types