Tech article
ClickHouse C – Talk to ClickHouse using its native binary protocol
No preview is available. Read the original article for the full story.
Hacker News | Oct 11, 2026 | saisrirampur
Automated excerpt
One core header, plus optional follow-up headers for TCP, but with no PG-specific code. Including clickhouse. h alone gives a pure block FORMAT Native from a pipe with no TCP, no compression, no link-time deps beyond libc. Decode a clickhouse local query without TCP or compression. /* demo. c — cc -std=c11 -O2 -I. demo. c -o demo */ /* Spawn `clickhouse local --format Native -q "... "` and read its stdout via a pipe; see examples/minimal_decode. c for the full plumbing. */ bytes read past a block boundary buffered for the next block. */ if (chc_in_init(&in, &io, &al, opts.
Selected automatically from source text; not independently written or fact-checked. Read the original for full context.