HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
ClickHouse
pg_clickhouse
C2025–2026
ClickHouse / pg_clickhouse

pg_clickhouse

Interfaces to query ClickHouse databases from PostgreSQL

3Distinct people
6Mentions
0Explicit recommenders
298GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Interfaces to query ClickHouse databases from PostgreSQL

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month6 dated mentions

Observed mentions: 2025-12-10 19:41:06 UTC to 2026-08-19 15:22:34 UTC.

01232025-12-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 3 mentions; 2 submissions, 1 commentsDec 20252026-01-01 00:00:00 UTC to 2026-02-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2026-02-01 00:00:00 UTC to 2026-03-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-01 00:00:00 UTC to 2026-04-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-04-01 00:00:00 UTC to 2026-05-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsApr 20262026-05-01 00:00:00 UTC to 2026-06-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-06-01 00:00:00 UTC to 2026-07-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-01 00:00:00 UTC to 2026-08-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2026-08-01 00:00:00 UTC to 2026-09-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsAug 2026

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Dec 20252025-12-01 00:00:00 UTC2026-01-01 00:00:00 UTC321
Jan 20262026-01-01 00:00:00 UTC2026-02-01 00:00:00 UTC110
Feb 20262026-02-01 00:00:00 UTC2026-03-01 00:00:00 UTC000
Mar 20262026-03-01 00:00:00 UTC2026-04-01 00:00:00 UTC000
Apr 20262026-04-01 00:00:00 UTC2026-05-01 00:00:00 UTC000
May 20262026-05-01 00:00:00 UTC2026-06-01 00:00:00 UTC000
Jun 20262026-06-01 00:00:00 UTC2026-07-01 00:00:00 UTC000
Jul 20262026-07-01 00:00:00 UTC2026-08-01 00:00:00 UTC101
Aug 20262026-08-01 00:00:00 UTC2026-09-01 00:00:00 UTC101

What Hacker News says

6 sources
Sai is https://news.ycombinator.com/user?id=saisrirampur Maybe we were saved by being acquired before hiring sales. Sai knew the problem & understood customers. He'd sometimes oversell a bit, but managed it: kept pulse of capacity for new development, would ask about how hard requested features were, would feel out customer intent & guide customer adapt to what was already there When we had our pepepizza moment, there was an understanding that it wasn't going to work, took learnings of what would be involved there, but kept focus on improving what we already had For kafka connector we had a design partner, I got to work with them directly. They wanted 30 microsecond message processing, so didn't want json. Original ask was flatbuffers. I decided to put message formatting into a scripting layer using gopher-lua. Spent a weekend getting fla
Read the rest
tbuffers working with lua (it was buggy, opened half a dozen PRs to flatbuffers repo which got ignored). It was clearly awful having to manage flatbuffer schema files & update scripts every time schema changed. But I had alternative already made: msgpack. Throughput needed work but addressed that by creating pool of lua interpreters Overall I overworked myself (put my hands out of commission & spent months relearning how to type on split ergo colemak-dh), but I enjoyed the work. Team was very open with each other & when performance is your selling point there's an understanding that engineering quality needs to be maintained. Sure there were parts of the system I hated, & sometimes I'd try chip away at those Hopefully that helps, hard to say the difference, but I really feel in my work that when customer has problem I'm part of conversation. Most recently there was talk of customer wanting cold data offloaded from postgres which is what inspired https://github.com/ClickHouse/pg_clickhouse/pull/298 where we get Postgres to do most the work Raised problems trying to mix C++ into postgres extension, decided fix was to write clickhouse-c library to replace clickhouse-cpp, there was some doubt on team about value, but demonstrated value (https://github.com/ClickHouse/pg_clickhouse/pull/254) & I appreciate my colleagues not being afraid to change their mind There's a level of trust where instead of being assigning tasks on a board I instead work on what I think is important based on information available. Nobody was asking for wal-rus, but I know my fleet ClickHouse Cloud similarly took route of taking its time hiring sales. Better to have a small sales team that can work directly with engineering on quality leads than overwhelming everyone so that sales becomes the enemy. Guess the difference is agency. When engineering is involved in making commitments they're invested in delivering & there's push back so sales doesn't start hallucinating features
In Half-Baked Product

Show HN: ClickHouse Managed Postgres

Hello HN, this is Sai and Kaushik from ClickHouse. We are launching a Postgres managed service that is natively integrated with ClickHouse. We built this in partnership with Ubicloud (https://www.ubicloud.com/) What do you get: It offers NVMe-backed Postgres + built-in CDC into ClickHouse + pg_clickhouse so you can keep your app Postgres-first while running analytics in ClickHouse. Try it (Sign up for private preview): https://clickhouse.com/cloud/postgres Live demo: https://www.youtube.com/watch?v=rpBA13nQxAk&t=4s Detailed technical blog: https://clickhouse.com/blog/postgres-managed-by-clickhouse Problem - Scaling limits of Postgres for OLTP and OLAP As companies grow on Postgres, they often start to run into performance limits, both for transactions and analytics. On the OLTP side, things like slow updates and upserts, painful vacuums,
Read the rest
and WAL spikes from long-running transactions are common, usually driven by disk I/O bottlenecks. With fewer I/O constraints, Postgres could handle a lot more. On the analytics side, many limitations come from the fact that Postgres was designed for OLTP and lacks features common in analytical databases, such as vectorized execution and broad ingest format support. As a result, many companies (e.g., GitLab, Ramp, Cloudflare) complement Postgres with ClickHouse to offload analytics, adopting two purpose-built open-source databases. However, adding ClickHouse to a Postgres-based application isn’t straightforward—you typically need to build CDC pipelines, manage backfills and schema changes, and update application code to handle a second database. Solution - NVMe-backed Postgres natively integrated with ClickHouse On the OLTP side, NVMe-based Postgres can dramatically improve performance. By colocating storage with compute, NVMe enables much lower latency and higher IOPS than network-attached storage, speeding up disk-bound operations (up to 10x), including updates, upserts, vacuums, and checkpointing. We’re working on a detailed blog exploring how NVMe reduces WAL fsync, buffer read, and checkpoint overhead, stay tuned! On the OLAP side, the Postgres service offers native CDC to ClickHouse and unified querying via pg_clickhouse. CDC is currently powered by ClickPipes/PeerDB using logical replication, and we’re working to make it faster and simpler with logical replication v2, a new decoding plugin, and a path toward sub-second replication. Every Postgres comes with the pg_clickhouse (https://github.com/ClickHouse/pg_clickhouse) extension, which simplifies adding ClickHouse-powered analytics to a Postgres application. It lets you query ClickHouse directly from Postgres, enabling a single interface for transactions and analytics. pg_clickhouse supports broad analytics query pushdown, with plans to expand this further over time. Who is it for? 1. Companies who are looking for a faster and more scalable Postgres. 2. Companies already using ClickHouse that want a tightly integrated Postgres to offload analytics to ClickHouse, without the operational burden of managing the integration. 3. Companies that are growing rapidly (or expect to) and want a simple yet powerful stack with Postgres on NVMe + ClickHouse. CTA 1. If the above value and vision resonates with you and you want to try it for a use-case, please sign up here and we will give you access within a day or two! https://clickhouse.com/cloud/postgres 2. We’d love to hear your feedback and anything else that comes to mind, it would be super helpful to us as we build this out!
2 points · Open discussion
Appreciate you chiming in! We evaluated almost all the FDWs and landed on clickhouse_fdw (built by Ildus) as the most mature option. However, it hadn’t been maintained since 2020. We used it as the base, and the goal is to take it to the next level. Our main focus is comprehensive pushdown capabilities. It was very surprising to see how much the Postgres FDW framework has evolved over the years and the number and types of hooks it now provides for push down. This is why we decided to lean into FDW than build an extension bottoms up. But we may still do that within pg_clickhouse for a few features, wherever FDW framework becomes a restriction. We’ve made notable progress over the last few months, including support for pushdown of custom aggregations and SEMI JOINs/basic subqueries. Fourteen of twenty-two TPCH queries are now fully pushdown
Read the rest
able. We’ll be doubling down to add pushdown support for much more complex queries, CTEs, window functions, and more. More on the future here - https://github.com/ClickHouse/pg_clickhouse?tab=readme-ov-fi... All with the goal of enabling users to build fast analytics from the Postgres layer itself but still using the power of ClickHouse!
In Pg_ClickHouse: A Postgres extension for querying ClickHouse

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.