Skip to content

postgres-haskell/postgres-binary-formats-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

A binary format specification of PostgreSQL built-in types

Numeric

smallint - word16
integer  - word32
bigint   - word64
decimal - TODO
numeric - TODO
real - float32
double precision - float64

Monetary

Character

char - word8
text, varchar - text[n]

Binary

bytea - bytes[n]

Date/Times

TODO

Boolean

bool - word8(1 for True, 0 for False)

Enum

TODO

Geometric

Network Address

Text Search

UUID

XML

JSON

Array

word32 - dimension
word32 - 1 if array has NULL, 0 otherwise
oid - oid of element type
for each dimension:
  word32 - elements in dimension
  word32 - lower bound
for each element:
  word32 - elements length
  bytes[n] - encoded element

Composite

Range

Oid

About

A binary format specification of PostgreSQL built-in types

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published