Home / Companies / ClickHouse / Blog / Post Details
Content Deep Dive

Postgres FDW: Pushdown is a negotiation

Blog post from ClickHouse

Post Details
Company
Date Published
Author
The query that takes 80 ms or 4 minutes #
Word Count
3,830
Company Posts That Month
34
Language
English
Hacker News Points
-
Post removed?
No
Summary

Postgres extensions enhance functionality by allowing users to integrate features not originally included in Postgres, such as geospatial data handling with PostGIS and time-series data management with TimescaleDB. Foreign Data Wrapper (FDW) extensions enable Postgres to interact with external data sources, like ClickHouse, by creating foreign tables, allowing SQL queries across both systems. The process of determining what parts of a query are executed remotely, known as pushdown, is complex, involving the translation of SQL expressions between Postgres and ClickHouse to ensure accurate results. The development of pg_clickhouse, a ClickHouse FDW, involves iterative enhancements to expand pushdown capabilities for various SQL clauses such as window functions and JSON operations, significantly reducing data transfer volumes and execution times. The goal is to maximize remote execution while maintaining the integrity of query results, highlighting the intricate negotiation between different SQL grammars to optimize performance in a unified data stack.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 5,735 1,391 247 -9%
Vector Search 1 2,268 422 128 +30%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.