Encoders and decoders for the PostgreSQL's binary format

Version on this page:0.5.0
LTS Haskell 21.13:0.13.1
Stackage Nightly 2023-09-24:0.13.1
Latest on Hackage:0.13.1

See all snapshots postgresql-binary appears in

MIT licensed and maintained by Nikita Volkov
This version can be pinned in stack with:postgresql-binary-0.5.0@sha256:b789e87c157aa9fd6d8fcda976caa116e634395bb8895b06fc62566dd1361513,6110

Module documentation for 0.5.0

  • PostgreSQLBinary
    • PostgreSQLBinary.Array
    • PostgreSQLBinary.Decoder
    • PostgreSQLBinary.Encoder

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.