# elixir-ecto/postgrex

PostgreSQL driver for Elixir

Repository: https://github.com/elixir-ecto/postgrex
Canonical: https://ross.abutalabs.com/products/postgrex
Homepage: http://hexdocs.pm/postgrex/
Language: Elixir
License Family: other
Last push: 2026-08-07T12:06:52+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 8, longevity 100
- inputs: {"age_days": 4742, "days_push": 26, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1214, forks 311 (observed 2026-08-28T04:04:00.810108+00:00)

## What it is
Postgrex is a PostgreSQL driver for Elixir that communicates using PostgreSQL's binary protocol. It provides automatic encoding/decoding of Elixir values, extensible type support, and transactions and pooling via DBConnection.

## Use cases
- connect to postgres from elixir
- run raw sql queries in elixir
- query postgresql without an orm
- encode and decode postgres types in elixir
- use postgres transactions with connection pooling
- extend postgres type encoding for custom types

## When to choose
- you need direct, low-level PostgreSQL access from Elixir
- you want to use Ecto, which builds on Postgrex
- you need custom PostgreSQL type encoding/decoding

## When to avoid
- you want a high-level ORM with migrations and associations (use Ecto instead)
- you are not working with PostgreSQL

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database
- domain: databases, backend
- platform: elixir
- tags: postgresql, elixir, driver, dbconnection

## Member repositories
- elixir-ecto/postgrex (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:00.810108+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:17:21.712163+00:00, confidence not recorded.
  - readme: https://github.com/elixir-ecto/postgrex (fetched 2026-08-28T04:04:00.810108+00:00, sha 10464f30a82c)
  - homepage: http://hexdocs.pm/postgrex/ (fetched 2026-08-29T12:25:22.892302+00:00, sha 94cd46a1a5c9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
