Name

Aliases

Description

bigint

int8

signed eight-byte integer

bigserial

serial8

autoincrementing eight-byte integer

bit [ (n) ]

fixed-length bit string

bit varying [ (n) ]

varbit

variable-length bit string

boolean

bool

logical Boolean (true/false)

box

rectangular box in the plane

bytea

binary data ("byte array")

character varying [ (n) ]

varchar [ (n) ]

variable-length character string

character [ (n) ]

char [ (n) ]

fixed-length character string

cidr

IPv4 or IPv6 network address

circle

circle in the plane

date

calendar date (year, month, day)

double precision

float8

double precision floating-point number

inet

IPv4 or IPv6 host address

integer

int, int4

signed four-byte integer

interval [ (p) ]

time span

line

infinite line in the plane

lseg

line segment in the plane

macaddr

MAC address

money

currency amount

numeric [ (p, s) ]

decimal [ (p, s) ]

exact numeric of selectable precision

path

geometric path in the plane

point

geometric point in the plane

polygon

closed geometric path in the plane

real

float4

single precision floating-point number

smallint

int2

signed two-byte integer

serial

serial4

autoincrementing four-byte integer

text

variable-length character string

time [ (p) ] [ without time zone ]

time of day

time [ (p) ] with time zone

timetz

time of day, including time zone

timestamp [ (p) ] [ without time zone ]

date and time

timestamp [ (p) ] with time zone

timestamptz

date and time, including time zone

tsquery

text search query

tsvector

text search d0cument

txid_snapshot

user-level transaction ID snapshot

uuid

universally unique identifier

xml

XML data

Name

Aliases

Description

bigint

int8

음수표현가능 8바이트integer

bigserial

serial8

양수 자동증가8바이트 integer

bit [ (n) ]

0 과1의 단일비트값을 저장.

bit varying [ (n) ]

varbit

길이가변형bit 단위글자

boolean

bool

논리적불린형 (true/false)

box

2차원 사각형

bytea

가변길이의 바이트 배열

character varying [ (n) ]

varchar [ (n) ]

길이가변형문자열

character [ (n) ]

char [ (n) ]

문자열의 길이가 짧으면 공백으로 채워진다.
문자열이 길면 무시된다

cidr

IPv4또는 IPv6 네트워크주소

circle

2차원 원 (중심점과 반경)

date

ANSI SQL 데이터 타입 날짜 정보저장

double precision

float8

double precision floating-point number

inet

IPv4 or IPv6 호스트 주소

integer

int, int4

음수표현가능4 바이트 integer

interval [ (p) ]

time span

line

infinite line in the plane

lseg

2차원 선 구간

macaddr

MAC address

money

통화(각종 금액 단위) numeric(9,2)와 동일

numeric [ (p, s) ]

decimal [ (p, s) ]

s는 소숫점 이하 자리수

path

열렸거나 닫혀진 선 구간

point

2차원 기하학 점

polygon

2차원 다각형 (닫혀진 path와 동일)

real

float4

이중정밀도를 가지는 실수 값

smallint

int2

음수표현가능2바이트 integer

-32,768 ~ 32,767

serial

serial4

int type 이며 일련번호 증가 타입

text

최대길이를 정의할 필요없는 문자열

time [ (p) ] [ without time zone ]

ANSI SQL 시간 타입, 시간정보

time [ (p) ] with time zone

timetz

ANSI SQL 시간 타입, including time zone

timestamp [ (p) ] [ without time zone ]

제한 범위 ISO형식의 날짜와 시간

timestamp [ (p) ] with time zone

timestamptz

제한 범위 ISO형식의 날짜와 시간, including time zone

tsquery

text search query

tsvector

text search d0cument

txid_snapshot

user-level transaction ID snapshot

uuid

universally unique identifier

xml

XML data

, .