Microsoft has open-sourced pg_durable, a PostgreSQL extension that brings durable execution, the crash-resilient workflow pattern behind tools like Temporal and DBOS, inside the database itself, with no separate orchestration service to run.

A pg_durable function is a graph of SQL steps that Postgres executes and checkpoints as it goes; if the database crashes, restarts, or a step fails, execution resumes from the last durable checkpoint instead of making you reconstruct state by hand. Under the hood it leans on a background worker and two Rust libraries: duroxide for the orchestration runtime, and duroxide-pg for Postgres-backed state. Microsoft aims it at teams already keeping their state in Postgres, citing embedding pipelines, ingest jobs, fan-out aggregation and external API workflows.

Durable execution is the unglamorous backbone of reliable agent and data workflows, and most options bolt on a new service to get it. Folding it into Postgres is appealing precisely because it adds nothing to the stack, though the project is still in preview.