-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: support COPY from stdin binary #19603
Comments
See also #41608 for additional COPY syntax |
Sending to Bulk I/O backlog since we don't have COPY expertise on SQL Features. Would you be able to evaluate how difficult this implementation is? Per @vy-ton we want to shore up features required by pgx so that we can recommend it to customers. |
@mjibson which usage were you thinking of? the file upload stuff? |
COPY BINARY is just what pgx hard codes as its COPY implementation. Nothing to do with IMPORT or file uploads. |
Ah, okay, so this is about supporting the |
The COPY binary format is the same as pgwire's binary format. Add a small state machine and tuple decoder to handle it. Fixes cockroachdb#19603 Release note (sql change): support BINARY format for COPY FROM
The binary mode is used by https://github.com/jackc/pgx and would be nice to be able to use as an alternative to lib/pq's funky COPY support that mandates a transaction.
From: https://www.postgresql.org/docs/9.2/sql-copy.html
The text was updated successfully, but these errors were encountered: