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

sql/pgwire: buffer messages during COPY TO and startup #99761

Merged
merged 3 commits into from
Mar 30, 2023

Commits on Mar 28, 2023

  1. sql: buffer COPY OUT data

    Rather than sending each COPY result row one-by-one, now the data will
    get buffered, then flushed when the buffer size limit is reached or when
    sending ReadyForQuery.
    
    Release note: None
    rafiss committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    10177c0 View commit details
    Browse the repository at this point in the history
  2. pgwire: buffer startup messages when creating connection

    This avoids sending each ParameterStatus one-by-one.
    
    Release note: None
    rafiss committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    d945bec View commit details
    Browse the repository at this point in the history
  3. sql: refactor CopyIn handling

    This makes it so we don't need to manually send a CommandComplete.
    Instead, when the CopyInResult is closed, CommandComplete will be sent,
    similar to how it works for other message types.
    
    Release note: None
    rafiss committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    f7d1256 View commit details
    Browse the repository at this point in the history