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

'COPY ... FROM STDIN' Support with Dynamic Fast Forward and Improved Error Handling - v3.0 #4762

Open
wants to merge 25 commits into
base: v3.0
Choose a base branch
from

Conversation

rahim-kanji
Copy link
Collaborator

@rahim-kanji rahim-kanji commented Nov 26, 2024

Introduced FAST FORWARD and DYNAMIC FAST FORWARD for PostgreSQL

  • Dynamic Fast Forward is specifically designed to handle scenarios like COPY ... FROM STDIN, where data streaming to the backend server is required. When such a command is detected, Dynamic Fast Forward mode is automatically activated. After the data transfer is complete, the session seamlessly reverts to Normal mode. This feature is flexible and can be extended to manage similar streaming or data-intensive operations in the future if needed.
  • Implemented graceful handling for COPY IN and COPY BOTH scenarios when queries bypass the initial COPY ... FROM STDIN checks and reach the PGSQL_Connection handler. Instead of triggering an assertion, the system now safely disconnects the client and backend connections to maintain stability.
  • Removed residue compression code.
  • Improved COPY OUT format extraction.

Closes #4746

@rahim-kanji rahim-kanji changed the title PostgreSQL 'COPY ... FROM STDIN' Support with Dynamic Fast Forward and Improved Error Handling 'COPY ... FROM STDIN' Support with Dynamic Fast Forward and Improved Error Handling - v3.0 Nov 26, 2024
… bundled libraries are prioritized during the build process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant