-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
db:postgresRelated to PostgreSQLRelated to PostgreSQLenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Hi!
COPY
is the most efficient way to import data to PostgreSQL database (it is less flexible than INSERT
, but has significantly less overhead).
https://www.postgresql.org/docs/current/sql-copy.html
https://www.postgresql.org/docs/current/populate.html#POPULATE-COPY-FROM
It would be great to have a low-level interface to stream data to/from PostgreSQL using COPY ... FROM STDIN
and COPY ... TO STDOUT
statements. For example, similar to https://docs.rs/tokio-postgres/0.5.1/tokio_postgres/struct.Client.html#method.copy_in and https://docs.rs/tokio-postgres/0.5.1/tokio_postgres/struct.Client.html#method.copy_out.
nixpulvis, glebselyukov and eli-r-phufoscout, lapin-b and glebselyukovksten-ab, glebselyukov, montanalow and eli-r-ph
Metadata
Metadata
Assignees
Labels
db:postgresRelated to PostgreSQLRelated to PostgreSQLenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed