---
title: "You can’t UPDATE what you can’t find: ClickHouse vs PostgreSQL"
description: "ClickHouse 25.7's SQL-standard UPDATEs were benchmarked against PostgreSQL 17.5 on identical hardware using the 600M-row TPC-H lineitem table, with cold and hot runs."
url: "https://swe.quest/articles/you-can-t-update-what-you-can-t-find-clickhouse-vs-postgresql-6396a03839ca899c"
canonical: "https://clickhouse.com/blog/update-performance-clickhouse-vs-postgresql"
source: "ClickHouse"
published: "2025-08-13"
difficulty: "medium"
kind: "Research"
reading_minutes: 15
tags: ["analytics","postgres","performance","databases","storage-engines"]
---

# You can’t UPDATE what you can’t find: ClickHouse vs PostgreSQL

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-08-13, 15 min read, Research. Original: [https://clickhouse.com/blog/update-performance-clickhouse-vs-postgresql](https://clickhouse.com/blog/update-performance-clickhouse-vs-postgresql)

## Summary

ClickHouse 25.7's SQL-standard UPDATEs were benchmarked against PostgreSQL 17.5 on identical hardware using the 600M-row TPC-H lineitem table, with cold and hot runs. ClickHouse wins bulk updates by up to 4,000× because most bulk WHERE clauses can't use the primary key index. That forces full scans, where PostgreSQL takes 380–390 s and ClickHouse's columnar, parallel scan takes 0.09–5.23 s. Point updates are roughly at parity and cached point updates stay competitive. The comparison isn't apples-to-apples: PostgreSQL wraps every statement in a transaction and fsyncs WAL at commit by default, while ClickHouse skips per-statement transactions and defaults to fsync\_after\_insert=false.

Written by swe.quest, not by the author.

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

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)

## Prerequisites

- MVCC
- B-tree indexes ([easy posts on Storage engines](https://swe.quest/tags/storage-engines.md?difficulty=easy))
- columnar storage
- SQL UPDATE semantics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

ClickHouse, PostgreSQL, TPC-H, MergeTree, MVCC, WAL, patch parts

## Related posts

- [ClickHouse and PostgreSQL - a Match Made in Data Heaven - part 1](https://swe.quest/articles/clickhouse-and-postgresql-a-match-made-in-data-heaven-part-1-7c7668b9b4913b70.md): ClickHouse · 2022-12-20 · Medium · 18 min read · Analytics & OLAP, PostgreSQL, Query engines, Performance engineering, SQL
  ClickHouse can query PostgreSQL data in place through the postgresql table function and the PostgreSQL table engine.
- [How we made ClickHouse UPDATEs 1,000× faster (Part 3: Benchmarks)](https://swe.quest/articles/how-we-made-clickhouse-updates-1-000-faster-part-3-benchmarks-0d540536665217da.md): ClickHouse · 2025-08-07 · Hard · 17 min read · Analytics & OLAP, Storage engines, Performance engineering, Databases
  ClickHouse's new standard SQL UPDATEs, implemented as lightweight patch parts, make changes visible up to ~1,000–1,700× faster than classic mutations on a 600M-row TPC-H lineitem table: one bulk update dropped from about 100 s to 60 ms. The benchmark compares classic mutations, on-the-fly mutations, lightweight updates and ReplacingMergeTree inserts for both bulk and single-row updates, measuring time to visibility and worst-case query slowdown before merges.
- [ClickHouse and PostgreSQL - a Match Made in Data Heaven - part 2](https://swe.quest/articles/clickhouse-and-postgresql-a-match-made-in-data-heaven-part-2-67e202f8b29633ab.md): ClickHouse · 2023-01-26 · Medium · 8 min read · Analytics & OLAP, PostgreSQL, Data pipelines, SQL, Performance engineering
  ClickHouse dictionaries backed by a PostgreSQL source can replace joins against Postgres-resident mapping tables, keeping the data in memory and refreshing it via LIFETIME and an invalidate\_query.
- [Longbridge Technology simplifies their architecture and achieves 10x performance boost with ClickHouse](https://swe.quest/articles/longbridge-technology-simplifies-their-architecture-and-achieves-10x-e3a982c02b6e4b33.md): ClickHouse · 2025-03-17 · Medium · 8 min read · Analytics & OLAP, Databases, PostgreSQL, Payments & fintech
  Longbridge, a Singapore online brokerage, replaced a fragmented market-data stack of PostgreSQL (historical), Redis (real-time) and DynamoDB (high-write) with ClickHouse after evaluating it against TimescaleDB and TDengine for write throughput, Decimal support, time functions and aggregations.
- [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.

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)
