Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush all remaining rows inside connection buffer if #31

Open
github-actions bot opened this issue Oct 25, 2022 · 0 comments
Open

Flush all remaining rows inside connection buffer if #31

github-actions bot opened this issue Oct 25, 2022 · 0 comments

Comments

@github-actions
Copy link

any are remaining.

The Flush message does not cause any specific
output to be generated, but forces the backend to deliver any data
pending in its output buffers. A Flush must be sent after any
extended-query command except Sync, if the frontend wishes to examine
the results of that command before issuing more commands. Without
Flush, messages returned by the backend will be combined into the
minimum possible number of packets to minimize network overhead.
https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY

Line: 166

psql-wire//command.go

Lines 163 to 173 in 3dbc832

case types.ClientBind:
return srv.handleBind(ctx, reader, writer)
case types.ClientFlush:
// TODO: Flush all remaining rows inside connection buffer if
// any are remaining.
//
// The Flush message does not cause any specific
// output to be generated, but forces the backend to deliver any data
// pending in its output buffers. A Flush must be sent after any
// extended-query command except Sync, if the frontend wishes to examine
// the results of that command before issuing more commands. Without

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants