mauricio / postgresql-async

Async, Netty based, database drivers for PostgreSQL and MySQL written in Scala
Apache License 2.0
1.43k stars 222 forks source link

Switch to binary instead of text protocol on PostgreSQL #20

Open mauricio opened 11 years ago

mauricio commented 11 years ago

The text protocol becomes really verbose when dealing with binary data, we need to switch to the binary protocol.

hsyed commented 10 years ago

I wouldn't mind getting involved if you wouldn't mind getting me started :)

mauricio commented 10 years ago

@hsyed biggest issue is that there are no docs at the PostgreSQL website about this, you have to read their driver's source code :(

mauricio commented 10 years ago

Also, the two classes that register the encoders/decoders are PostgreSQLColumnEncoderRegistry and PostgreSQLColumnDecoderRegistry so you'd have to change the returned types on them.

All column encoder/decoders would have to change to handle the binary format.