Files
postgresql/src/bin
Heikki Linnakangas eec57115e4 In psql \copy from, send data to server in larger chunks.
Previously, we would send each line as a separate CopyData message.
That's pretty wasteful if the table is narrow, as each CopyData message
has 5 bytes of overhead. For efficiency, buffer up and pack 8 kB of
input data into each CopyData message.

The server also sends each line as a separate CopyData message in COPY TO
STDOUT, and that's similarly wasteful. But that's documented in the FE/BE
protocol description, so changing that would be a wire protocol break.

Reviewed-by: Aleksander Alekseev
Discussion: https://www.postgresql.org/message-id/40b2cec0-d0fb-3191-2ae1-9a3fe16a7e48%40iki.fi
2021-07-14 13:08:28 +03:00
..
2021-06-21 12:33:50 +02:00
2021-06-21 12:33:50 +02:00
2021-06-21 12:33:50 +02:00
2021-06-21 12:33:50 +02:00
2021-06-21 12:33:50 +02:00
2021-05-10 14:36:21 +02:00
2021-06-21 12:33:50 +02:00
2021-06-21 12:33:50 +02:00
2021-06-21 12:33:50 +02:00
2021-06-21 12:33:50 +02:00
2021-07-11 20:08:02 +12:00
2021-01-02 13:06:25 -05:00