pg_durable
PostgreSQL in-database durable execution
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.
How the `df.seq()` Function and the `~>` Operator Implement Sequencing in the pg_durable DSLDiscover how the df.seq() function and the ~> operator in pg_durable implement sequencing, ensuring left-to-right workflow order with THEN execution nodes.
What Is Deterministic Replay in Duroxide and Why pg_durable Orchestrations Require Deterministic CodeUnderstand deterministic replay in Duroxide and why pg_durable orchestrations need deterministic code for crash recovery and exact-once guarantees.
How Row-Level Security (RLS) Isolates Users' Durable Function Instances and Variables in pg_durableDiscover 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.
Security Considerations for Using `df.http()` in pg_durable and the `http-allow-azure-domains` Cargo FeatureSecure your pg_durable deployments by understanding df.http() security. Learn how http-allow-azure-domains prevents SSRF by validating Azure domains.
How pg_durable Persists State Across PostgreSQL Crashes Using Runtime State TablesLearn how pg_durable persists state across PostgreSQL crashes using runtime state tables. It stores metadata in WAL-protected tables for exact replay after restarts.
How pg_durable Detects Extension Drop/Recreate Events and Restarts Its Background WorkerDiscover how pg_durable detects extension drop/recreate events and restarts its worker using catalog polling and a UUID sentinel for seamless background process management.
How df.cancel() Interacts with the Duroxide Runtime in pg_durable: Cancellation Flow ExplainedUnderstand 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.
Epoch Sentinel Mechanism in pg_durable: How the Background Worker Detects Extension Drop-and-Recreate RacesLearn 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.
df.if() vs df.if_rows() in the pg_durable DSL: Conditional Branching ExplainedUnderstand 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.
How pg_durable Initializes the Duroxide Runtime at Startup via Its Background WorkerDiscover 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.
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:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →