-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql/pgwire: improve detection of Sync message in extended protocol
A previous commit (1b42d0a) added code to detect when the next message in the extended protocol is a Sync message, in order to allow an optimization in some cases. That approach wasn't reliable, since even if the pgwire buffer receives an Execute and a Sync command together, it may not push them into the connExecutor StmtBuf at the same time. This could lead to the connExecutor missing the sync. This is fixed by checking for the Sync at the pgwire level instead. Release note: None
- Loading branch information
Showing
4 changed files
with
40 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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