---
title: "pg_clickhouse & chdb updates: Encoding, nesting, and types"
description: "pg_clickhouse v0.11.0 and the chdb extension v0.1.2 improve Postgres–ClickHouse type compatibility."
url: "https://swe.quest/articles/pg-clickhouse-chdb-updates-encoding-nesting-and-types-54018d870fc3076b"
canonical: "https://clickhouse.com/blog/pg_clickhouse-chdb"
source: "ClickHouse"
published: "2026-09-30"
difficulty: "medium"
kind: "Release"
reading_minutes: 8
tags: ["postgres","analytics","databases","sql"]
---

# pg\_clickhouse & chdb updates: Encoding, nesting, and types

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-09-30, 8 min read, Release. Original: [https://clickhouse.com/blog/pg\_clickhouse-chdb](https://clickhouse.com/blog/pg_clickhouse-chdb)

## Summary

pg\_clickhouse v0.11.0 and the chdb extension v0.1.2 improve Postgres–ClickHouse type compatibility. A new \`check\_encoding\` option (fail, remove, replace, truncate) handles invalidly encoded text, and ClickHouse Interval types now import as Postgres \`interval\` with pushdown of expressions like \`start\_at + duration\`. Parameterized JSON columns map to jsonb so \`ORDER BY\` on a property pushes down correctly, and unflattened Nested columns map to 2-D text arrays or to matching composite-type arrays. The release also adds mappings for large integers, geo and time types, pushes down the sha\*/digest functions, removes \`clickhouse\_raw\_query()\` and drops PostgreSQL 13 support.

Written by swe.quest, not by the author.

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

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- PostgreSQL foreign data wrappers ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- ClickHouse data types ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- Postgres composite types ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))

## Keywords

pg\_clickhouse, chDB, ClickHouse, PostgreSQL, chdb\_hook, PGXN

## Related posts

- [What's New in pg\_clickhouse - JSONB Support, SQL value functions, Streaming, and more](https://swe.quest/articles/what-s-new-in-pg-clickhouse-jsonb-support-sql-value-functions-streaming-and-more-ecb202cf6ff32298.md): ClickHouse · 2026-04-24 · Medium · 10 min read · PostgreSQL, Analytics & OLAP, Query engines, Memory management
  pg\_clickhouse, the Postgres foreign data wrapper for querying ClickHouse, now pushes down far more operations to ClickHouse.
- [pg\_clickhouse 0.11.1: Now with pgvector, UPDATE, DELETE pushdown](https://swe.quest/articles/pg-clickhouse-0-11-1-now-with-pgvector-update-delete-pushdown-a96a06584d05c765.md): ClickHouse · 2026-11-19 · Medium · 7 min read · PostgreSQL, Analytics & OLAP, Vector search, Query engines
  pg\_clickhouse 0.11.1 maps pgvector's vector type to ClickHouse Array(Float32/Float64) columns.
- [Introducing pg\_clickhouse: A Postgres extension for querying ClickHouse](https://swe.quest/articles/introducing-pg-clickhouse-a-postgres-extension-for-querying-clickhouse-98de49fb9ae8bb75.md): ClickHouse · 2025-12-10 · Medium · 11 min read · PostgreSQL, Query engines, Analytics & OLAP, SQL
  pg\_clickhouse v0.1.0 is an Apache 2-licensed PostgreSQL foreign data wrapper, derived from clickhouse\_fdw, that runs analytics queries on ClickHouse from Postgres so existing queries can work unmodified by changing search\_path.
- [What's New in pg\_clickhouse v0.3.2: Postgres 19, TLS, Regex, and Memory](https://swe.quest/articles/what-s-new-in-pg-clickhouse-v0-3-2-postgres-19-tls-regex-and-memory-db831637f7730c4c.md): ClickHouse · 2026-06-23 · Medium · 2 min read · PostgreSQL, Analytics & OLAP, Databases
  pg\_clickhouse v0.3.2, the Postgres extension for querying ClickHouse, adds support for PostgreSQL 19 Beta1 and needs no restart or ALTER EXTENSION UPDATE.
- [ClickHouse Release 24.8 LTS](https://swe.quest/articles/clickhouse-release-24-8-lts-0a43fff10e32a288.md): ClickHouse · 2024-09-03 · Medium · 14 min read · Analytics & OLAP, Databases, SQL
  ClickHouse 24.8 is a Long Term Support release (supported for 12 months) with 19 new features, 18 performance optimisations and 65 bug fixes.

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)
