0% found this document useful (0 votes)
48 views

Postgresql Data Types

PostgreSQL supports a variety of data types including integers, floating point numbers, character strings, dates, times, geometric types, network addresses, and more. Data types include small and big integers, numbers of varying precision, character strings of fixed and variable lengths, dates, times with and without time zones, and geometric types to represent paths, points, and shapes.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Postgresql Data Types

PostgreSQL supports a variety of data types including integers, floating point numbers, character strings, dates, times, geometric types, network addresses, and more. Data types include small and big integers, numbers of varying precision, character strings of fixed and variable lengths, dates, times with and without time zones, and geometric types to represent paths, points, and shapes.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

POSTGRESQL

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

time of day, including time zone


date and time

timestamptz

date and time, including time zone

You might also like