Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(clickhouse): bump CH version used in CI and local to 26.6.1.1193 (#69499)

Bryan Ciaraldid9a760cdd280
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index 4ae7001f524e..eba4e98451b2 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -700,7 +700,7 @@ jobs:
env:
COMPOSE_FILE: docker-compose.dev.yml:docker-compose.profiles.yml
COMPOSE_PROFILES: temporal,azure
- CLICKHOUSE_SERVER_IMAGE: clickhouse/clickhouse-server:26.3.10.60
+ CLICKHOUSE_SERVER_IMAGE: clickhouse/clickhouse-server:26.6.1.1193
run: |
cp posthog/user_scripts/latest_user_defined_function.xml docker/clickhouse/user_defined_function.xml
# nohup detaches the launch so it survives Depot's step-shell teardown
@@ -749,7 +749,7 @@ jobs:
env:
COMPOSE_FILE: docker-compose.dev.yml:docker-compose.profiles.yml
COMPOSE_PROFILES: temporal,azure
- CLICKHOUSE_SERVER_IMAGE: clickhouse/clickhouse-server:26.3.10.60
+ CLICKHOUSE_SERVER_IMAGE: clickhouse/clickhouse-server:26.6.1.1193
WAIT_FOR_DOCKER_TIMEOUT: 900
run: |
bin/ci-wait-for-docker wait objectstorage \
diff --git a/.github/clickhouse-versions.json b/.github/clickhouse-versions.json
index 110e67707cb7..43dc3ee32f3f 100644
--- a/.github/clickhouse-versions.json
+++ b/.github/clickhouse-versions.json
@@ -1,6 +1,6 @@
{
"production_eu": "clickhouse/clickhouse-server:26.3.10",
"production_us": "clickhouse/clickhouse-server:26.3.10",
- "local": "clickhouse/clickhouse-server:26.3.10",
+ "local": "clickhouse/clickhouse-server:26.6.1.1193",
"oldest_supported": "clickhouse/clickhouse-server:26.3.10"
}
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 52ffc54bca04..3a3f37ecf4ea 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -655,7 +655,7 @@ jobs:
env:
COMPOSE_FILE: docker-compose.dev.yml:docker-compose.profiles.yml
COMPOSE_PROFILES: temporal,azure
- CLICKHOUSE_SERVER_IMAGE: clickhouse/clickhouse-server:26.3.10.60
+ CLICKHOUSE_SERVER_IMAGE: clickhouse/clickhouse-server:26.6.1.1193
run: |
cp posthog/user_scripts/latest_user_defined_function.xml docker/clickhouse/user_defined_function.xml
bin/ci-wait-for-docker launch --background --down \
@@ -721,7 +721,7 @@ jobs:
env:
COMPOSE_FILE: docker-compose.dev.yml:docker-compose.profiles.yml
COMPOSE_PROFILES: temporal,azure
- CLICKHOUSE_SERVER_IMAGE: clickhouse/clickhouse-server:26.3.10.60
+ CLICKHOUSE_SERVER_IMAGE: clickhouse/clickhouse-server:26.6.1.1193
run: bin/ci-wait-for-docker wait
- name: Restore schema cache from master
diff --git a/Dockerfile.sandbox b/Dockerfile.sandbox
index 180ae63a7c89..891bdb69a566 100644
--- a/Dockerfile.sandbox
+++ b/Dockerfile.sandbox
@@ -70,7 +70,7 @@ RUN corepack enable
# --- Rarely changes: prebuilt binaries ---
COPY --from=ghcr.io/astral-sh/uv:0.11.14 /uv /uvx /usr/local/bin/
-COPY --from=clickhouse/clickhouse-server:26.3.10.60 /usr/bin/clickhouse /usr/local/bin/clickhouse
+COPY --from=clickhouse/clickhouse-server:26.6.1.1193 /usr/bin/clickhouse /usr/local/bin/clickhouse
RUN ln -s clickhouse /usr/local/bin/clickhouse-client
RUN ARCH=$(dpkg --print-architecture) && \
diff --git a/docker-compose.base.yml b/docker-compose.base.yml
index 9d9425781acd..2a2c10aa501b 100644
--- a/docker-compose.base.yml
+++ b/docker-compose.base.yml
@@ -177,11 +177,7 @@ services:
retries: 10
clickhouse:
- #
- # Note: please keep the default version in sync across
- # `posthog` and the `charts-clickhouse` repos
- #
- image: ${CLICKHOUSE_SERVER_IMAGE:-clickhouse/clickhouse-server:26.3.10.60}
+ image: ${CLICKHOUSE_SERVER_IMAGE:-clickhouse/clickhouse-server:26.6.1.1193}
restart: on-failure
environment:
CLICKHOUSE_SKIP_USER_SETUP: 1
diff --git a/docker-compose.hobby.yml b/docker-compose.hobby.yml
index 12bc75f13107..747bb5d65f16 100644
--- a/docker-compose.hobby.yml
+++ b/docker-compose.hobby.yml
@@ -33,10 +33,6 @@ services:
- redis7-data:/data
clickhouse:
- #
- # Note: please keep the default version in sync across
- # `posthog` and the `charts-clickhouse` repos
- #
extends:
file: docker-compose.base.yml
service: clickhouse
diff --git a/docker/clickhouse/config.xml b/docker/clickhouse/config.xml
index 7df7fcb4e575..156ecce2332e 100644
--- a/docker/clickhouse/config.xml
+++ b/docker/clickhouse/config.xml
@@ -79,6 +79,14 @@
<!-- how many threads merge files, default is 16 -->
<background_pool_size>4</background_pool_size>
+ <!-- Since 26.6, CREATE TABLE with a projection sanity-checks the built-in
+ number_of_free_entries_in_pool_to_execute_mutation (20) and
+ number_of_free_entries_in_pool_to_execute_optimize_entire_partition (25)
+ defaults against background_pool_size * this ratio, ignoring our
+ <merge_tree> overrides. 4 * 8 = 32 satisfies both checks without
+ adding merge threads. -->
+ <background_merges_mutations_concurrency_ratio>8</background_merges_mutations_concurrency_ratio>
+
<!-- Number of workers to recycle connections in background (see also drain_timeout).
If the pool is full, connection will be drained synchronously. -->
<!-- <max_threads_for_connection_collector>10</max_threads_for_connection_collector> -->