Skip to content

Commit 8f47f1f

Browse files
Base version
1 parent 3965c6c commit 8f47f1f

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,55 @@
11
# postgres-binary-formats-spec
22
A binary format specification of PostgreSQL built-in types
3+
4+
## Numeric
5+
```
6+
smallint - word16
7+
integer - word32
8+
bigint - word64
9+
decimal - TODO
10+
numeric - TODO
11+
real - float32
12+
double precision - float64
13+
```
14+
## Monetary
15+
16+
## Character
17+
```
18+
char - word8
19+
text, varchar - text[n]
20+
```
21+
## Binary
22+
```
23+
bytea - bytes[n]
24+
```
25+
26+
## Date/Times
27+
TODO
28+
29+
## Boolean
30+
```
31+
bool - word8(1 for True, 0 for False)
32+
```
33+
34+
## Enum
35+
TODO
36+
37+
## Geometric
38+
39+
## Network Address
40+
41+
## Text Search
42+
43+
## UUID
44+
45+
## XML
46+
47+
## JSON
48+
49+
## Array
50+
51+
## Composite
52+
53+
## Range
54+
55+
## Oid

0 commit comments

Comments
 (0)