---
title: "What's new in pg_clickhouse v0.10.0: Subqueries, TPC-H Speedups, C Driver, and Aggregates"
description: "pg_clickhouse v0.10.0 expands pushdown for analytic workloads, with full pushdown across the TPC-H suite remaining the stated target. The release moves the scoreboard from 12 of 22 fully pushed-down queries to 16, including Q17, which falls from 32.7 seconds to 37 milliseconds when its correlated aggregate subquery is shipped to ClickHouse. SubPlan handling now turns PostgreSQL subqueries into ClickHouse subqueries, while NOT IN and related operators receive guards that preserve PostgreSQL’s three-valued NULL semantics; compatibility requires ClickHouse 25.8 or later for the correlated-subquery shape. The binary driver was rebuilt on a plain-C client library and hardened against concurrency bugs. The release also broadens pushed-down functions and aggregates, adds clickhouse_perform() and clickhouse_server_version(), and leaves six TPC-H queries plus other roadmap items unresolved."
---

# What's new in pg\_clickhouse v0.10.0: Subqueries, TPC-H Speedups, C Driver, and Aggregates

[Clickhouse](https://yomu.fyi/company/clickhouse) · Aug 11, 2026

**Type:** Announcement

## Summary

pg\_clickhouse v0.10.0 expands pushdown for analytic workloads, with full pushdown across the TPC-H suite remaining the stated target. The release moves the scoreboard from 12 of 22 fully pushed-down queries to 16, including Q17, which falls from 32.7 seconds to 37 milliseconds when its correlated aggregate subquery is shipped to ClickHouse. SubPlan handling now turns PostgreSQL subqueries into ClickHouse subqueries, while NOT IN and related operators receive guards that preserve PostgreSQL’s three-valued NULL semantics; compatibility requires ClickHouse 25.8 or later for the correlated-subquery shape. The binary driver was rebuilt on a plain-C client library and hardened against concurrency bugs. The release also broadens pushed-down functions and aggregates, adds clickhouse\_perform() and clickhouse\_server\_version(), and leaves six TPC-H queries plus other roadmap items unresolved.

## Context

The project identifies improving pushdown coverage for analytic workloads as its top focus, using full pushdown across the TPC-H benchmark suite as the immediate metric. Some subqueries previously caused pg\_clickhouse to fetch every row from ClickHouse and evaluate the subquery locally. Six TPC-H queries remain unpushed after this release.

## Approach / What changed

The release adds whole-subquery pushdown, including correlated subqueries and NOT IN handling, with guards that preserve PostgreSQL’s three-valued NULL semantics. It rebuilds the binary driver on a plain-C client library, hardens it against concurrency bugs, expands pushed-down functions and aggregates, and adds clickhouse\_perform() for statements executed for effect plus clickhouse\_server\_version() for version checks.

## Takeaways

- TPC-H coverage increased from 12 of 22 fully pushed-down queries to 16; Q17 improved from 32.7 seconds to 37 milliseconds after its correlated aggregate subquery was pushed down.
- NOT IN and related operators use consumption-aware NULL guards to match PostgreSQL semantics, while non-nullable cases can use simpler native ClickHouse expressions.
- clickhouse\_perform() handles statements without row results, and clickhouse\_raw\_query() is deprecated in favor of configured-server functions with managed connection and driver selection.

**Tags:** [Performance](https://yomu.fyi/topic/performance), [Postgres](https://yomu.fyi/topic/postgres), [Reliability](https://yomu.fyi/topic/reliability)

- Source: [Clickhouse](https://clickhouse.com/blog/pg_clickhouse-whats-new-july-2026)
- Source URL: https://clickhouse.com/blog/pg_clickhouse-whats-new-july-2026
- Ingested by Yomu: 2026-08-29T07:46:02.265Z

[Read original post](https://clickhouse.com/blog/pg_clickhouse-whats-new-july-2026)
