Repository navigation
Revert "Make postgresql and PostgreSQL engine work against a ClickHouse instance" - #112935
Merged
Merged
Conversation
…kHouse instance"
Contributor
This was referenced Aug 2, 2026
qiuyanjun888
pushed a commit
to qiuyanjun888/ClickHouse
that referenced
this pull request
Oct 22, 2026
In a simple-query message holding several statements, every statement must report its own row count in `CommandComplete`. On releases 26.3 to 26.9 statement N reported N times its count, because `processQuery` reused one query context for every statement and `executeQueryWithTracking` chained a progress callback onto the previous statement's callback, writing into counters of a returned stack frame. Master is fixed by ClickHouse#112940 (per-statement query context, callback-owned counters restored on exit), but nothing asserted the counts: the same fix first landed with ClickHouse#110760 and was reverted along with it (ClickHouse#112935) without any test noticing. The test speaks the PostgreSQL wire protocol over a raw socket and prints every `CommandComplete` tag of two multi-statement queries (SELECT and INSERT, which use the `result_rows` and `written_rows` counters). It prints `SELECT 9, SELECT 18, SELECT 12` / `INSERT 0 7, INSERT 0 4` on v26.3.57.12-lts, v26.8.32.14-lts and v26.9.23.15, and matches the reference on master. Closes ClickHouse#117805 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #110760
Version info
26.8.1.600(included in26.8and later)