# epgsql

> Asynchronous PostgreSQL client for Erlang

Source: https://talira.ai/catalog/epgsql-1qh8yx6n
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / erlang](https://talira.ai/categories/languages/erlang)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [epgsql](https://talira.ai/orgs/epgsql.md)

epgsql is a [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) client for [Erlang](https://talira.ai/catalog/erlang-xsdkv450.md) that makes full use of the PostgreSQL protocol's request pipelining, so several queries don't each wait for a network round trip. It supports simple, extended and prepared queries, batch execution, query cancellation, server notifications and transaction helpers. It's the community fork of an asynchronous fork of wg/epgsql, and epgsql/pgapp adds a connection pool and reconnection on top.

## Links

- GitHub: https://github.com/epgsql/epgsql

## Problems it solves

- connect to PostgreSQL from Erlang
- run many Postgres queries quickly from an Erlang app
- listen for Postgres notifications in Erlang

## Features

- request pipelining for fewer round trips
- simple, extended and prepared queries
- batch execution and query cancellation
- server notifications (LISTEN/NOTIFY)
- transaction helpers

## Trust

Overall: 0.40 out of 1.
Signals: maintenance 0.45, adoption 0.53, momentum 0.18, community 0.72, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- latest release 4.8.0 18 months ago
- 448 GitHub stars
- 61 contributors
- has a company behind it

## Related

- Works with [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md)

## Alternatives

- [Postgrex](https://talira.ai/catalog/postgrex-wrgb4p9b.md): PostgreSQL driver for Elixir

## Sources

[^1]: https://github.com/epgsql/epgsql/blob/devel/LICENSE (checked 29 Nov 2026)
