# pgcentralfoundation/plrust

A Rust procedural language handler for PostgreSQL

Repository: https://github.com/pgcentralfoundation/plrust
Canonical: https://ross.abutalabs.com/products/plrust
Homepage: https://plrust.io/
Language: Rust
License: PostgreSQL
License Family: other
Last push: 2026-02-27T17:23:11+00:00

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

## Adoption (not part of the score)
Stars 1397, forks 46 (observed 2026-08-28T04:04:36.768245+00:00)

## What it is
PL/Rust is a loadable procedural language handler for PostgreSQL that lets developers write database functions in Rust, compiled to native machine code. It is built on the pgrx framework and can run as a 'trusted' language on x86_64 and aarch64 Linux, providing compile-time safety guarantees inside the database.

## Use cases
- write PostgreSQL functions in Rust
- create natively compiled stored procedures in Postgres
- write trigger functions in Rust
- use Rust's ecosystem inside PostgreSQL
- run a trusted procedural language in Postgres
- improve performance of database functions over interpreted PLs

## When to choose
- you need maximum performance for PostgreSQL functions via native compilation
- you want Rust's memory-safety guarantees for database code
- you need access to Postgres SPI, triggers, and built-in data types from Rust
- you're on x86_64 or aarch64 Linux and want a trusted procedural language

## When to avoid
- you need a procedural language on non-Linux or non-x86_64/aarch64 systems with trusted guarantees
- you want a simple interpreted language without a Rust toolchain and compilation setup
- your deployment can't install rustc, pgrx, and build dependencies on the database server

## Facets
- artifact type: plugin
- maturity: active
- function: compiler, interpreter, sdk, security
- domain: databases, programming-languages, developer-tools
- platform: rust, cpp
- tags: postgresql-extension, procedural-language, pgrx, stored-functions, trusted-language, native-compilation, linux, macos

## Member repositories
- pgcentralfoundation/plrust (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.768245+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-30T04:39:17.191373+00:00, confidence not recorded.
  - readme: https://github.com/pgcentralfoundation/plrust (fetched 2026-08-28T04:04:36.768245+00:00, sha 99b1cb1b1610)
  - homepage: https://plrust.io/ (fetched 2026-08-29T11:53:43.389888+00:00, sha de8a62bec1bd)
  - site_page: https://plrust.io/install-prerequisites.html (fetched 2026-08-29T11:53:43.392559+00:00, sha b8a6ba819cce)
  - site_page: https://plrust.io/install-plrust.html (fetched 2026-08-29T11:53:43.394705+00:00, sha 4dca236f79db)
  - site_page: https://plrust.io/install-plrust-on-debian-ubuntu.html (fetched 2026-08-29T11:53:43.396607+00:00, sha 75c859543968)
- Data as of 2026-08-30T08:39:29.467469+00:00.
