Encoders and decoders for the PostgreSQL's binary format

Version on this page:0.13
LTS Haskell 20.16:0.13.1
Stackage Nightly 2023-03-29: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.13@sha256:8ddf52a3cbb2f0496de3bdf359542c4f50218f1cbb7e1932076e980cb1f6feb8,5600

Module documentation for 0.13

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

It can be used to implement performant bindings to Postgres. E.g., hasql is based on this library.

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



  • Removed PostgreSQL.Binary.Data. Because it was causing Haddock in the dependant packages to unpredictably redirect to it instead of the original location regardless of whether they were imported from it.