Skip to content

Bump postgres from REL_18_4 to REL_18_6 - #124281

Merged
thevar1able merged 1 commit into
ClickHouse:masterfrom
actueleai:bump-postgres-REL_18_6
Oct 7, 2026
Merged

thevar1able merged 1 commit into
ClickHouse:masterfrom
actueleai:bump-postgres-REL_18_6

Conversation

@actueleai

@actueleai actueleai commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the vendored postgres (libpq) from REL_18_4 to REL_18_6, staying on the pinned 18.x line; the two minor releases carry upstream security fixes.

CVEs

All fixed in 18.5/18.6; none reachable from ClickHouse's libpq-only build.

ClickHouse-side changes

  • contrib/postgres-cmake/pg_config.h — version strings bumped to 18.6 (PG_VERSION, PG_VERSION_NUM, PG_MINORVERSION_NUM, PG_VERSION_STR; stale PACKAGE_VERSION/PACKAGE_STRING 18.3 → 18.6).

Fork

Carries 1 ClickHouse patch (Add _Atomic), re-applied on ClickHouse/REL_18_6.

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Update postgres to 18.6.


Workflow [PR]
Sync PR [sync-upstream/pr/124281]

Version info

  • Merged into: 26.10.1.1747-master (included in 26.10 and later)
  • Backported to: 26.9.34.16, 26.8.42.12, 26.3.71.3

Bump vendored PostgreSQL sources used to build libpq from 18.4 to 18.6.

Build adjustments:

- Bump `PG_VERSION`, `PG_VERSION_NUM`, `PG_MINORVERSION_NUM`,
  `PG_VERSION_STR`, `PACKAGE_VERSION` and `PACKAGE_STRING` in `pg_config.h`
  to 18.6.
- No source list changes: the libpq frontend sources are unchanged between
  18.4 and 18.6.

Co-Authored-By: Claude Code <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [42956e8]

Summary: ✅


AI Review

Summary

This PR bumps the vendored postgres/libpq sources from REL_18_4 to REL_18_6 and updates the local contrib/postgres-cmake/pg_config.h version stamps to match. I reviewed the current PR diff, the upstream postgres range as it intersects the subset ClickHouse actually builds from contrib/postgres-cmake/CMakeLists.txt, and the existing PR discussion/threads (there are no prior review threads, only the CI stub comment). The libpq source list remains unchanged, the new submodule commit still carries the ClickHouse _Atomic patch, and the Praktika top-level report is all-green. I do not see a correctness, compatibility, or vendoring-glue issue in this update.

Final Verdict
  • Status: ✅ Approve

LLVM Coverage Report

Measured on commit 42956e8.

Metric Baseline Current Δ
Lines 88.20% 88.30% +0.10%
Functions 92.10% 91.80% -0.30%
Branches 79.70% 79.70% +0.00%

Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage).

Newly covered: +184 lines in 51 files (-166 lines lost coverage) · Details

Full report

@clickhouse-gh clickhouse-gh Bot added pr-build Pull request with build/testing/packaging improvement submodule changed At least one submodule changed in this PR. labels Oct 6, 2026
@thevar1able thevar1able added the can be tested Allows running workflows for external contributors label Oct 6, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. label Oct 6, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 42956e8ef with master 7ee214ee3 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

22 translation units recompiled, 7 s compile time in total, 22 of them have a recent master baseline.

Median compile-time ratio to the baselines is ×1.07 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio.
The matched translation units cost +0.6 s (+10%) in total before that adjustment.

Job report

@thevar1able
thevar1able added this pull request to the merge queue Oct 7, 2026
Merged via the queue into ClickHouse:master with commit 107cc19 Oct 7, 2026
294 of 295 checks passed
@thevar1able
thevar1able deleted the bump-postgres-REL_18_6 branch October 7, 2026 13:05
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 7, 2026
@chethan-64

Copy link
Copy Markdown

Hi, would it be possible to backport this PostgreSQL bump (REL_18_4 to REL_18_6) to the 26.8 branch? This update addresses several CVEs associated with PostgreSQL, and having it backported would help us resolve those vulnerabilities in 26.8 as well.

@thevar1able

thevar1able commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

@chethan-64

Sure, let's backport this bump. Just want to highlight that out of all CVEs mentioned

none reachable from ClickHouse's libpq-only build

@thevar1able thevar1able added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Nov 19, 2026
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 19, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 19, 2026
clickhouse-gh Bot added a commit that referenced this pull request Nov 20, 2026
Backport #124281 to 26.8: Bump `postgres` from REL_18_4 to REL_18_6
clickhouse-gh Bot added a commit that referenced this pull request Nov 20, 2026
Backport #124281 to 26.9: Bump `postgres` from REL_18_4 to REL_18_6
PedroTadim added a commit that referenced this pull request Nov 23, 2026
Backport #124281 to 26.3: Bump `postgres` from REL_18_4 to REL_18_6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-build Pull request with build/testing/packaging improvement pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants