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

Merged
merged 25 commits into from
Dec 12, 2024

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.
  • Reordered OpenSSL library and include paths to the end to ensure that bundled libraries are prioritized during the build process.

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
@rahim-kanji rahim-kanji force-pushed the v3.0_dynamic_fast_forward branch from 74baf9f to 7e20a59 Compare December 3, 2024 20:09
… bundled libraries are prioritized during the build process.
@renecannao renecannao merged commit 2c80f4a into v3.0 Dec 12, 2024
109 of 173 checks passed
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.

2 participants