Just a quick post to note the release of pg_clickhouse v0.1.4. This v0.1 maintenance release can be upgraded in-place and requires no ALTER EXTENSION UPDATE command; as soon as sessions reload the shared library they’ll be good to go.
Thanks in part to reports from attentive users, v0.1.4’s most significant changes improve the following:
- The binary driver now properly inserts
NULLinto a Nullable(T) column. Previously it would raise an error. - The http driver now properly parses arrays. Previously it improperly included single quotes in string items and would choke on brackets (
[]) in values. - Both drivers now support mapping a ClickHouse String types to Postgres BYTEA columns. Previously the worked only with text types, which is generally preferred. But since ClickHouse explicitly supports binary data in String values (notably hash function return values), pg_clickhouse needs to support it, as well.
Get it in all the usual places:
My thanks to pg_clickhouse users like Rahul Mehta for reporting issues, and to my employer, ClickHouse, for championing this extension. Next up: more aggregate function mapping, hash function pushdown, and improved subquery (specifically, SubPlan) pushdown.



Free. No new XIDs are used. They share the parent’s transaction.
Expensive. Burns a main Transaction ID (finite resource, leads to Vacuum Freeze).
Dangerous. Creates a subtransaction (performance killer).