Skip to content

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

Merged
renecannao merged 25 commits intov3.0from
v3.0_dynamic_fast_forward
Dec 12, 2024
Merged

'COPY ... FROM STDIN' Support with Dynamic Fast Forward and Improved Error Handling - v3.0#4762
renecannao merged 25 commits intov3.0from
v3.0_dynamic_fast_forward

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
@renecannao renecannao deleted the v3.0_dynamic_fast_forward branch March 7, 2026 20:30
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