TL;DR
Microsoft has released pg_durable as an open-source PostgreSQL extension, allowing teams to define fault-tolerant, durable workflows directly within the database. This development simplifies reliable background processing without external orchestrators.
Microsoft has officially open-sourced pg_durable, a PostgreSQL extension that enables in-database, fault-tolerant workflow execution, integrated into its Azure HorizonDB service. This move aims to streamline reliable background processing within PostgreSQL without requiring external orchestration tools.
pg_durable allows users to define complex workflows directly in SQL, with built-in checkpointing that ensures progress is preserved across crashes, restarts, or failures. The extension is designed for teams managing data pipelines, AI workflows, and operational runbooks that require durability and high availability.
Microsoft’s HorizonDB, a cloud-native PostgreSQL service, now includes pg_durable as part of its feature set. The extension operates as a PostgreSQL library, enabling SQL-native workflow definitions with primitives for scheduling, parallel execution, and condition handling, all without external services like Redis or Temporal.
Why It Matters
This development matters because it simplifies the architecture for reliable data processing, reducing reliance on external orchestrators and custom app-layer logic. It offers a more integrated, SQL-centric approach to fault-tolerant workflows, potentially improving operational visibility, resilience, and developer productivity in data-heavy environments.
PostgreSQL extension pg_durable
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Background
Traditional workflow management in PostgreSQL often involves external tools such as Airflow or custom app-layer retry logic, which can be complex and fragile. Prior solutions like pg_cron, queues, and external orchestrators require additional infrastructure and introduce failure points. Microsoft’s initiative to embed durable execution within PostgreSQL aligns with industry trends toward data locality and simplified architecture.
Microsoft announced the project as part of its broader effort to bring compute closer to data, with HorizonDB designed for performance and scalability. The open-source release follows a period of internal testing and development within Azure, aiming to foster broader adoption and community contributions.
“pg_durable brings fault-tolerant, durable workflows directly into PostgreSQL, eliminating the need for external orchestrators and simplifying reliable data processing.”
— Microsoft spokesperson
“Our goal with HorizonDB and pg_durable is to enable teams to build resilient data pipelines and operational workflows entirely within the database, reducing complexity and increasing reliability.”
— Azure HorizonDB team lead
fault-tolerant database workflow tools
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
What Remains Unclear
It is not yet clear how widely adopted pg_durable will become outside of Microsoft’s Azure environment, or how it compares in performance and features to existing external orchestration tools. Further community feedback and real-world testing are expected to shape its evolution.

SQL for the AI Era: The Complete Handbook for Intelligent Data Systems, Machine Learning Readiness, and Real-World Automation (Foundations of Software and Data Systems in the AI Era)
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
What’s Next
Next steps include community testing, feedback, and potential integration into other PostgreSQL distributions. Microsoft may also release further documentation, tutorials, and enhancements based on early adoption. Monitoring how the extension performs in diverse workloads will be key to its broader adoption.

Data Engineering with Python and PostgreSQL: ETL Pipelines, Warehousing, and Reporting
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Key Questions
How does pg_durable improve workflow reliability?
It enables SQL-defined workflows with checkpointing, so progress is preserved across failures, avoiding manual reprocessing and manual recovery efforts.
Can pg_durable be used outside of Azure HorizonDB?
Yes, it is open-source and can be installed in any PostgreSQL environment that supports extensions, though integration and support are optimized within HorizonDB.
What types of workflows are best suited for pg_durable?
Data pipelines, AI model workflows, operational runbooks, and any process requiring durability, fault tolerance, and progress tracking within SQL.
Does using pg_durable require changes to existing applications?
It mainly involves defining workflows in SQL; existing applications may need minimal modifications if they can leverage SQL workflows for background tasks.
What are the limitations of pg_durable?
It is designed for SQL-based, structured workflows. Complex logic requiring arbitrary code or external APIs outside SQL may need additional integration or external orchestrators.
Source: Hacker News