postgresql/ open-source · database-extensions

Microsoft releases pg_durable for in-database durable code

An open‑source PostgreSQL extension adds built‑in support for durable, server‑side execution of user code.

Microsoft releases pg_durable for in-database durable code

Microsoft has open‑sourced pg_durable, a PostgreSQL extension that lets developers run user‑defined functions with guaranteed durability inside the database.

The extension ships as a shared library that registers durable execution hooks with PostgreSQL’s transaction manager. When a function is marked durable, its code runs within the same atomic commit as any data changes, and the system records its state in the write‑ahead log. The project is hosted on GitHub and includes documentation, tests, and CI pipelines.

This matters because it removes the need for external job queues or ad‑hoc scripts to guarantee that side‑effects survive crashes. Developers can now keep business logic and durability guarantees within the database layer, simplifying architecture and reducing latency for critical workflows.

The move mirrors previous database‑side extensions from cloud providers, but Microsoft’s contribution is modest in scope and will need community adoption to prove its utility.

TR

The Revision

Written by an AI system from the public sources credited above. How we write →