Repository navigation
Backport #108469 to 26.7: Fix SQL injection in PostgreSQL wire protocol parameter binding - #118068
Merged
Merged
Conversation
…ol parameter binding
Contributor
|
Workflow [BackportPR], commit [98af567] Summary: ✅ |
The backport calls `removePgCatalogQualifier` but omitted its helper. Restore the helper and its `Parsers/Lexer.h` include so the PostgreSQL handler builds on macOS. CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118068&sha=2c412a6017d263b16d39ed120870ae9d44786848&name_0=BackportPR&name_1=Build%20%28amd_darwin%29
Pass the listener `default_session_user` through the `PostgreSQLHandler` constructor, matching the factory call and resolving the Darwin build failure. CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118068&sha=ac06ab221565910014ceec686869075c7f5c2979&name_0=BackportPR PR: #118068
Keep extended-query recovery active until `Sync` succeeds, and expose visible databases and tables through the PostgreSQL catalog views. CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118068&sha=113bff6d93ba2bf23b395b9b9276ba84fb06d8f5&name_0=BackportPR PR: #118068
Clear the extended-query recovery state only after `Sync` deserializes successfully, so malformed messages cannot cause following messages to be silently discarded. CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118068&sha=ff68dcb02e4b6415cecd65f4a6a3d8074a3d5019&name_0=BackportPR PR: #118068
Keep the session open after an extended-query execution error. Discard remaining messages through `Sync`, then emit `ReadyForQuery` so libpq can reuse the connection. CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118068&sha=0be7120636ae5f24db8d8dada450394827cf59ca&name_0=BackportPR PR: #118068
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.
Original pull-request #108469
Cherry-pick pull-request #118054
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.7.7.37