Skip to content

Revert "Make postgresql and PostgreSQL engine work against a ClickHouse instance" - #112935

Merged
alexey-milovidov merged 1 commit into
masterfrom
revert-110760-pg-self-connect
Aug 1, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
revert-110760-pg-self-connect

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

Reverts #110760

Version info

  • Merged into: 26.8.1.600 (included in 26.8 and later)

@alexey-milovidov alexey-milovidov self-assigned this Aug 1, 2026
@alexey-milovidov
alexey-milovidov merged commit cce142e into master Aug 1, 2026
1 check failed
@alexey-milovidov
alexey-milovidov deleted the revert-110760-pg-self-connect branch August 1, 2026 17:25
@clickhouse-gh

clickhouse-gh Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ea54b3c]

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 1, 2026
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 1, 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants