News for hackers. Stuff that matters.
Re:pg_durable: Microsoft open sources in-database durable ex... by faxmeyourcode on Friday June 05, 2026 @12:18PM (#48414641)
This feels like the wrong solution to an age old problem solved by the DAG schedulers like Apache Airflow for a while now.

Why would I want to store my control flow in the database and not in code? It feels strange.

Not trying to dismiss the project, I'm just not getting it yet I think.

Re:pg_durable: Microsoft open sources in-database durable ex... by daxfohl on Friday June 05, 2026 @01:28PM (#48415640)
Microsoft has their own Durable Task framewor[1] for that kind of stuff, and it supports both running as a self-hosted standalone service like temporal, and running serverless on Azure Functions. It actually predated airflow, temporal, etc., IIRC.

This one seems to be more database-specific use case. The advantage is probably that you can track the exact state of the job in the database itself, rather than having to cross-reference the workflow log with the codebase and trace through it line by line to figure out what the state is. Plus I assume it's less overhead and latency, and operationally one less thing to spin up.

[1] https://learn.microsoft.com/en-us/azure/durable-task/common/...

Re:pg_durable: Microsoft open sources in-database durable ex... by affandar on Friday June 05, 2026 @02:10PM (#48416149)
(Author of both durable task framework and pg_durable/duroxide here)

Indeed Durable tasks is an exceptional project and was a unique innovation at the time.

pg_durable brings the same reliability and durablity semantics to long running operations within the database.

We have tons of interesting scenarios on the roadmap. Stay tuned! :)

Re:pg_durable: Microsoft open sources in-database durable ex... by alex_hirner on Friday June 05, 2026 @02:44PM (#48416553)
Does ai.backfill() fill incomplete/dirty rows or does pg_durable have some notion of partial completion?
Re:pg_durable: Microsoft open sources in-database durable ex... by sgarland on Friday June 05, 2026 @05:53PM (#48418862)
For one, Airflow (or anything external, for that matter) has no insight into DB load, so when devs slam 200 concurrent workers at the DB, other workloads may be impacted. In contrast, this could (I don’t think it does at this time) get near realtime feedback on performance without the RTT cost, and adjust itself accordingly.
Re:pg_durable: Microsoft open sources in-database durable ex... by booi on Friday June 05, 2026 @07:26PM (#48419681)
it also feels strange to query for DB load before starting a job.. i'm not even sure how you would do it, how you would adjust a job given a load value, and what would you do if there's too much load.