pg_durable

PostgreSQL in-database durable execution

11 articles 1.7k View on GitHub ↗
11 articles
How the pg_durable Worker Coordinates with User Sessions Using the _worker_ready Table

Discover how the pg_durable worker coordinates with user sessions using the _worker_ready table. Learn about the sentinel record and is_worker_ready() function for ensuring active and schema-compatible worker execution.

internals
Jun 8, 2026
How the `df.seq()` Function and the `~>` Operator Implement Sequencing in the pg_durable DSL

Discover how the df.seq() function and the ~> operator in pg_durable implement sequencing, ensuring left-to-right workflow order with THEN execution nodes.

internals
Jun 8, 2026
What Is Deterministic Replay in Duroxide and Why pg_durable Orchestrations Require Deterministic Code

Understand deterministic replay in Duroxide and why pg_durable orchestrations need deterministic code for crash recovery and exact-once guarantees.

deep-dive
Jun 8, 2026
How Row-Level Security (RLS) Isolates Users' Durable Function Instances and Variables in pg_durable

Discover how pg_durable leverages Row-Level Security RLS to isolate user's durable function instances and variables, ensuring secure and private data handling within PostgreSQL.

internals
Jun 8, 2026
Security Considerations for Using `df.http()` in pg_durable and the `http-allow-azure-domains` Cargo Feature

Secure your pg_durable deployments by understanding df.http() security. Learn how http-allow-azure-domains prevents SSRF by validating Azure domains.

best-practices
Jun 8, 2026
How pg_durable Persists State Across PostgreSQL Crashes Using Runtime State Tables

Learn how pg_durable persists state across PostgreSQL crashes using runtime state tables. It stores metadata in WAL-protected tables for exact replay after restarts.

internals
Jun 8, 2026
How pg_durable Detects Extension Drop/Recreate Events and Restarts Its Background Worker

Discover how pg_durable detects extension drop/recreate events and restarts its worker using catalog polling and a UUID sentinel for seamless background process management.

internals
Jun 8, 2026
How df.cancel() Interacts with the Duroxide Runtime in pg_durable: Cancellation Flow Explained

Understand the df.cancel() interaction with Duroxide runtime in pg_durable. Learn the cancellation flow from PL/pgSQL to Rust and Tokio for graceful worker shutdowns. Explore the repository now.

internals
Jun 8, 2026
Epoch Sentinel Mechanism in pg_durable: How the Background Worker Detects Extension Drop-and-Recreate Races

Learn how the epoch sentinel mechanism in pg_durable detects extension drop-and-recreate races with a UUID heartbeat, ensuring the background worker restarts its runtime before operating on stale data.

internals
Jun 8, 2026
df.if() vs df.if_rows() in the pg_durable DSL: Conditional Branching Explained

Understand the difference between df.if() and df.if_rows() in pg_durable. Learn how to optimize conditional branching and eliminate extra database queries for better performance.

deep-dive
Jun 8, 2026
How pg_durable Initializes the Duroxide Runtime at Startup via Its Background Worker

Discover how pg_durable initializes the Duroxide runtime at startup. This PostgreSQL extension utilizes a background worker to spin up Tokio and start the Duroxide state-machine engine.

internals
Jun 8, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →