Encoders and decoders for the PostgreSQL's binary format

Version on this page:
LTS Haskell 22.23:
Stackage Nightly 2024-05-27:
Latest on Hackage:

See all snapshots postgresql-binary appears in

MIT licensed and maintained by Nikita Volkov
This version can be pinned in stack with:postgresql-binary-,6078

Module documentation for

An API for dealing with PostgreSQL's binary data format.

It can be used to implement high level APIs for Postgres. E.g., "hasql-postgres" is based on this library.

It supports all Postgres versions starting from 8.3 and is tested against 8.3, 9.3 and 9.4 with the integer_datetimes setting off and on.