---
title: "Introducing chdb Postgres extension: High-performance imports from cloud storage"
description: "chdb is a new Postgres extension that uses the in-process ClickHouse engine chDB to import and export data in dozens of formats (CSV, JSON, Parquet, Avro, Arrow, ORC, Protobuf and more) from S3, GCS, Azure, HDFS, HTTP and local files, via a chdb_query() function and a chdb_hook module that extends COPY and CREATE TABLE."
url: "https://swe.quest/articles/introducing-chdb-postgres-extension-high-performance-imports-from-cloud-storage-ca34f0fd59105471"
canonical: "https://clickhouse.com/blog/introducing-chdb-postgres"
source: "ClickHouse"
published: "2026-09-08"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["postgres","data-pipelines","storage-systems","performance"]
---

# Introducing chdb Postgres extension: High-performance imports from cloud storage

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-09-08, 7 min read, Announcement. Original: [https://clickhouse.com/blog/introducing-chdb-postgres](https://clickhouse.com/blog/introducing-chdb-postgres)

## Summary

chdb is a new Postgres extension that uses the in-process ClickHouse engine chDB to import and export data in dozens of formats (CSV, JSON, Parquet, Avro, Arrow, ORC, Protobuf and more) from S3, GCS, Azure, HDFS, HTTP and local files, via a chdb\_query() function and a chdb\_hook module that extends COPY and CREATE TABLE. Importing a 1M-row NYC Taxi dataset from S3, pg\_duckdb and pg\_lake took 2-3x longer than chdb, and only aws\_s3, which supports far fewer formats, came close. Rather than linking chDB into the backend or running a persistent service, chdb starts a helper process on demand and streams ClickHouse Native-format results over file descriptors, then exits, so the Postgres server pays no lasting memory cost and is isolated from out-of-memory failures. Type mapping goes through pg-clickhouse-c, with a structure option to override mappings such as Postgres JSON to ClickHouse JSON.

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)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- PostgreSQL extensions ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Postgres COPY command ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- object storage basics ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

chdb, chDB, ClickHouse, pg\_duckdb, pg\_lake, aws\_s3, Parquet, pg-clickhouse-c

## Related posts

- [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.
- [Enhancing Postgres to ClickHouse replication using PeerDB](https://swe.quest/articles/enhancing-postgres-to-clickhouse-replication-using-peerdb-3be51f7c6d9f7329.md): ClickHouse · 2024-08-14 · Medium · 4 min read · PostgreSQL, Replication, Event-driven architecture, Analytics & OLAP, Identity & auth
  PeerDB hardened its Postgres-to-ClickHouse CDC pipeline in four ways.
- [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.
- [Welcome, chDB](https://swe.quest/articles/welcome-chdb-80fea87c647d8ab8.md): ClickHouse · 2023-08-31 · Medium · 7 min read · Analytics & OLAP, Python, Databases, Open source
  chDB is a community-built embedded SQL OLAP engine that packages ClickHouse as an in-process Python module, similar in spirit to DuckDB, for local analytics, ETL and exploration without running a server.
- [How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight](https://swe.quest/articles/how-we-migrated-clera-s-500-gb-production-database-to-clickhouse-managed-f4ed327a88d71cd7.md): ClickHouse · 2026-10-08 · Medium · 8 min read · PostgreSQL, Databases, Performance engineering, Schema migrations, Storage systems
  Clera moved a 500 GB, 500+ table production Postgres database from the EU to the US overnight onto ClickHouse Managed Postgres, with production traffic still running, using two parallel ClickPipes pipelines.

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)
