# reorg/pg_repack

Reorganize tables in PostgreSQL databases with minimal locks

Repository: https://github.com/reorg/pg_repack
Canonical: https://ross.abutalabs.com/products/pg_repack
Language: C
License: BSD-3-Clause
License Family: permissive
Last push: 2026-05-08T15:58:15+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 35, longevity 100
- inputs: {"age_days": 5044, "days_push": 117, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2292, forks 195 (observed 2026-08-28T04:06:34.999013+00:00)

## What it is
pg_repack is a PostgreSQL extension and CLI tool that removes bloat from tables and indexes with minimal locking, as an online alternative to CLUSTER and VACUUM FULL. It is a maintained fork of pg_reorg, supporting extension packaging and parallel index builds.

## Use cases
- remove bloat from postgres tables without downtime
- rebuild bloated indexes online
- reorganize tables to restore clustered index physical order
- replace vacuum full with a non-blocking alternative
- defragment postgres tables in production

## When to avoid
- you use a database other than PostgreSQL
- you need to repack tables without the disk space for a temporary copy
- you require a tool with a graphical interface

## Facets
- artifact type: cli-tool
- maturity: active
- function: database, developer-tools
- domain: databases, performance
- platform: windows, cross-platform, cli
- tags: postgresql, database-maintenance, table-bloat, online-reorg, postgres-extension, devops, linux, macos

## Member repositories
- reorg/pg_repack (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:34.999013+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-30T02:40:40.076708+00:00, confidence not recorded.
  - readme: https://github.com/reorg/pg_repack (fetched 2026-08-28T04:06:34.999013+00:00, sha b5a2d7576ec7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
