# pg_clickhouse v0.10: Subquery pushdown makes TPC-H queries 1000x faster

Original title: pg_clickhouse v0.10: Subquery pushdown and 1000x faster TPC-H queries

> Hacker News story 49265031 · language: en · submitted 2026-08-11
> Web version: https://zeli.app/story/49265031
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 64 · by [saisrirampur](<https://news.ycombinator.com/user?id=saisrirampur>) · 💬 7
[original](<https://clickhouse.com/blog/pg_clickhouse-whats-new-july-2026>) · [HN discussion](<https://news.ycombinator.com/item?id=49265031>)

## Summary

pg_clickhouse v0.10.0 pushes down correlated subqueries, enabling full pushdown for 16 of 22 TPC-H queries. A TPC-H Q17 query that took 32.7 seconds now runs in 37 ms. The release also introduces a new C client library, expands pushdown coverage for functions and aggregates, and fixes concurrency bugs in the binary driver.

## Key quote

> Q17 is the trophy: a correlated subquery averaging l_quantity per part that, back when it evaluated once per outer row against 6M line items at scale factor 1, took 32.7 seconds. Fully pushed down, it's 37 milliseconds.

## HN discussion (7 comments)

### [nasretdinov](<https://news.ycombinator.com/item?id=49268941>)

> As someone who tried doing things like condition pushdown, transpiling from one language to another, etc, this is really impressive. Correctly pushing subqueries while preserving the semantics of the original database is something I can't imagine I could've ever achieved

### [manjose2018](<https://news.ycombinator.com/item?id=49266319>)

> Please consider comparing pg_clickhouse to pgrust.
>
> https://malisper.me/how-we-made-postgres-hundreds-of-times-f...

### [manbash](<https://news.ycombinator.com/item?id=49266233>)

> \> December's headline feature was teaching the planner to push a whole correlated EXISTS subquery down as a single LEFT SEMI JOIN instead of a nested loop with one ClickHouse round trip per outer row. This moved the needle from 3 of 22 TPC-H queries all the way to 12.
>
> LLMs sure love throwing in archaic expressions such as "move the needle". The abrupt contrast in jargons is so unpleasant and keeps throwing me off right in the middle of reading.

---

## Cite

- Page: https://zeli.app/story/49265031
- Date: 2026-08-11
- Source: clickhouse.com (https://clickhouse.com/blog/pg_clickhouse-whats-new-july-2026)
- Hacker News: https://news.ycombinator.com/item?id=49265031

## Other languages

- zh: https://zeli.app/zh/story/49265031 · markdown: https://zeli.app/zh/story/49265031.md
- ja: https://zeli.app/ja/story/49265031 · markdown: https://zeli.app/ja/story/49265031.md
- ko: https://zeli.app/ko/story/49265031 · markdown: https://zeli.app/ko/story/49265031.md
- de: https://zeli.app/de/story/49265031 · markdown: https://zeli.app/de/story/49265031.md
- es: https://zeli.app/es/story/49265031 · markdown: https://zeli.app/es/story/49265031.md
