# aws/pgactive

Repository: https://github.com/aws/pgactive
Canonical: https://ross.abutalabs.com/products/pgactive
Language: C
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T15:50:56+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 69, longevity 89
- inputs: {"age_days": 1247, "days_push": 7, "days_rel": 49, "gap_med": 104.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1108, forks 38 (observed 2026-08-28T04:03:37.069873+00:00)

## What it is
pgactive is a PostgreSQL extension written in C that enables active-active replication, allowing multiple database instances in a cluster to accept writes and replicate changes to each other asynchronously. It builds on PostgreSQL's logical replication to add conflict detection and resolution needed for multi-writer topologies.

## Use cases
- run a multi-region high availability PostgreSQL cluster with writable nodes
- reduce write latency by letting applications write to the nearest database instance
- perform blue/green application updates with both databases writable
- migrate data between systems that must both accept writes
- replicate changes between production and test databases bidirectionally

## When to choose
- you need multiple writable PostgreSQL nodes in an asynchronous active-active topology
- you want conflict detection and resolution on top of native PostgreSQL logical replication
- you are building multi-region HA or low-latency write deployments on PostgreSQL

## When to avoid
- you need a single source of truth or synchronous replication guarantees
- your application cannot handle replication lag or conflicting writes
- you rely on features incompatible with multi-writer setups like incremental integer sequences
- you use a database other than PostgreSQL

## Facets
- artifact type: library
- maturity: active
- function: database, message-queue
- domain: databases, microservices, backend
- platform: self-hosted, cloud
- tags: postgresql-extension, active-active, logical-replication, multi-region, high-availability, conflict-resolution, replication, linux

## Member repositories
- aws/pgactive (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:37.069873+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:43:45.024341+00:00, confidence not recorded.
  - readme: https://github.com/aws/pgactive (fetched 2026-08-28T04:03:37.069873+00:00, sha 17265ed14761)
- Data as of 2026-08-30T08:39:29.467469+00:00.
