---
title: "Durable and auditable workflows with DBOS and ClickHouse Managed Postgres"
description: "DBOS, an open-source Postgres-native durable execution library, stores workflow and step checkpoints, queues and schedules in Postgres so crashed processes resume from the last completed step without a separate orchestrator."
url: "https://swe.quest/articles/durable-and-auditable-workflows-with-dbos-and-clickhouse-managed-postgres-84b2cf91df44a544"
canonical: "https://clickhouse.com/blog/dbos-clickhouse-managed-postgres-durable-workflows"
source: "ClickHouse"
published: "2026-11-24"
difficulty: "medium"
kind: "How-to"
reading_minutes: 6
tags: ["event-driven","postgres","analytics","scheduling","python"]
---

# Durable and auditable workflows with DBOS and ClickHouse Managed Postgres

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-11-24, 6 min read, How-to. Original: [https://clickhouse.com/blog/dbos-clickhouse-managed-postgres-durable-workflows](https://clickhouse.com/blog/dbos-clickhouse-managed-postgres-durable-workflows)

## Summary

DBOS, an open-source Postgres-native durable execution library, stores workflow and step checkpoints, queues and schedules in Postgres so crashed processes resume from the last completed step without a separate orchestrator. The walkthrough runs the DBOS Python starter app against ClickHouse Managed Postgres, then uses WalShadow (private preview) to replicate the dbos schema from the Postgres WAL into ClickHouse. With WalShadow's soft-delete setting, deletions arrive as tombstone rows (\_is\_deleted = 1, \_commit\_ts) in a ReplacingMergeTree. That lets teams keep short retention in Postgres (e.g., seven days) while holding years of auditable workflow history in ClickHouse.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- change data capture
- ClickHouse MergeTree tables ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

DBOS, ClickHouse, WalShadow, ClickHouse Managed Postgres, ReplacingMergeTree, ClickPipes, FastAPI

## Related posts

- [Running Durable Workflows in Postgres using DBOS](https://swe.quest/articles/running-durable-workflows-in-postgres-using-dbos-758f463809fa3e9f.md): Supabase · 2024-12-10 · Medium · 4 min read · PostgreSQL, Scheduling, Resilience, Serverless
  DBOS implements durable workflows entirely in Postgres: workflow and step decorators record a workflow's ID, inputs and status in a workflow\_status table and each step's output in operation\_outputs, all within a separate system database.
- [Postgres at Open House NYC](https://swe.quest/articles/postgres-at-open-house-nyc-5b2de1c38cc64f40.md): ClickHouse · 2026-10-13 · Easy · 6 min read · PostgreSQL, Replication, Event-driven architecture, Analytics & OLAP
  ClickHouse used its Open House NYC keynote to launch WalShadow, an open-source engine that replicates Postgres into ClickHouse from the physical WAL instead of logical replication.
- [What's New in DBOS - October 2026](https://swe.quest/articles/what-s-new-in-dbos-october-2026-0574d68e693cec1d.md): DBOS · 2026-10-29 · Medium · 5 min read · Distributed systems, PostgreSQL, Scaling, Deployment, Scheduling
  DBOS Transact adds workflow rewind to any step, which discards checkpoints from that step onward and re-executes while preserving the workflow ID.
- [Introducing WalShadow: Sub-second Postgres replication to ClickHouse from physical WAL](https://swe.quest/articles/introducing-walshadow-sub-second-postgres-replication-to-clickhouse-from-722f53f940cda679.md): ClickHouse · 2026-09-10 · Medium · 5 min read · PostgreSQL, Replication, Event-driven architecture, Analytics & OLAP, Performance engineering
  WalShadow is an open-source engine that replicates Postgres to ClickHouse by decoding the physical WAL stream outside the source database, instead of using logical replication slots.
- [Change Data Capture (CDC) with PostgreSQL and ClickHouse - Part 1](https://swe.quest/articles/change-data-capture-cdc-with-postgresql-and-clickhouse-part-1-10e3d601e2748dab.md): ClickHouse · 2023-06-15 · Medium · 23 min read · Event-driven architecture, PostgreSQL, Analytics & OLAP, Replication, Queues & messaging
  Postgres-to-ClickHouse CDC can be built by streaming row changes from Postgres logical decoding (pgoutput plugin, replication slots, LSN ordering) through Debezium and Kafka, then applying them in ClickHouse with the ReplacingMergeTree engine.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
