-
Notifications
You must be signed in to change notification settings - Fork 78
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
Use copy with binary. #857
Conversation
VaibhaveS
commented
Jul 31, 2024
•
edited
Loading
edited
- The binary format is a little faster than the text format (https://www.postgresql.org/docs/current/sql-copy.html).
- It's also useful in cases where the data stored in the BYTEA column, wherein the size in text format may exceed the 1GB field limit size of PostgreSQL.
While I like the idea, the main difficulty with it is how to make sure that the source and target Postgres servers are binary compatible? It's very hard to say because it is not well documented; and Postgres server compile time options will have an impact in that area (e.g. timestamp internal representation can be either Is is possible to use the binary protocol for selected columns, as in the libpq API? Then we could use it only for bytea columns, or a list of data type we know won't be a problem. Otherwise we can add a new command line option such as |
I'll check this out. EDIT: There isn't. |
3cd2c07
to
9216022
Compare
7b65004
to
b28d466
Compare
The actions are failing due to a weird reason. |
We are having a look with @hanefi ; the current suspicion is that the old spelling |
If you rebase to the current main branch, it should be all good again now. |
039eac9
to
c562f31
Compare
c562f31
to
c939d1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment about whitespaces, otherwise looks good.
Was about to merge then realized we are missing a long description of the new option in the docs at that place: https://pgcopydb.readthedocs.io/en/latest/ref/pgcopydb_clone.html#options -- @VaibhaveS can you add that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing option coverage in docs.
b3c06be
to
cb3810b
Compare