-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: COPY my_table TO STDOUT BINARY (#271)
* feat: support COPY table_name TO STDOUT * test: try to force more parallelism for testing * fix: apply longer timeout for batch reads * feat: support binary copy in format * feat: support binary copy in format * feat: copy in binary Adds support for COPY my_table FROM STDIN BINARY. The binary format can be more efficient and is also immune to problems with escaping null values etc. The binary format is however only usable when copying to/from tables with exactly the same columns. * test: add integration tests using real PostgreSQL * fix: remove invalid '-' * fix: use sudo to install * fix: try to connect with unix domain socket * fix: swap source and host volume * test: add timeout to fail test if stuck * fix: use custom folder to prevent interference * test: add testing using real PG * test: compare data in real PG and Spangres after COPY * fix: modify test case to match new behavior * test: skip wrong dialect test * test: fix integration tests * test: add logging to find where it gets stuck * test: use print * test: more logging * test: more logging * fix: add env vars to build script * fix: only set pg_password if defined * fix: close statement directly after receiving CopyDone * test: more logging * test: add error logging * test: use psql for testing * fix: add error handling to parsers * test: add integration test for binary copy * fix: setup mocks for tests * test: add copy back-and-forth test * test: copy back and forth between PG and CS * test: add more tests * fix: ignore change as it is internal * feat: COPY my_table TO STDOUT BINARY Adds support for COPY my_table TO STDOUT BINARY. The binary copy format is slightly more efficient than the text format, and has does not need any escaping of special valuesa, as there is no field delimiter or line terminator involved. * chore: add @internalapi annotations
- Loading branch information
Showing
11 changed files
with
314 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.