-
Notifications
You must be signed in to change notification settings - Fork 332
Closed
Description
I know the @porsager is interested in supporting the binary protocol, so I created this thread.
There are several advantages to a binary protocol:
- Binary protocol, gives better typing to nested structures, arrays and records inside store oid types of elements, you do not need to parse a string
- Less bytes for some data types, for example, uuid - 16 bytes instead of 36 in text form, timestamp - 8 bytes instead of 24 in text form
- Better performance, because postgres gives data in the form in which it is stored
- Zero cost for bytea type
I advise you to study the experience of other clients
C# client: npgsql/npgsql#447
Description binary struct by type: https://github.com/npgsql/doc/blob/main/dev/types.md/#L1
I also develop a client on node.js, later I can lay out a draft version
patrickmichalina, ansarizafar and marcbachmann
Metadata
Metadata
Assignees
Labels
No labels