diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-07-11 14:21:28 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-07-11 14:21:28 -0400 |
commit | cd22d3cdb9bd9963c694c01a8c0232bbae3ddcfb (patch) | |
tree | db03825cd2d21a726efcc59e71780f4758cc795f /src/test/modules/commit_ts/expected/commit_timestamp.out | |
parent | ea9125304dc6e90eabad165bd120eb1e667525d4 (diff) | |
download | postgresql-cd22d3cdb9bd9963c694c01a8c0232bbae3ddcfb.tar.gz postgresql-cd22d3cdb9bd9963c694c01a8c0232bbae3ddcfb.zip |
Avoid useless buffer allocations during binary COPY FROM.
The raw_buf and line_buf buffers aren't used when reading binary format,
so skip allocating them. raw_buf is 64K so that seems like a worthwhile
savings. An unused line_buf only wastes 1K, but as long as we're checking
it's free to avoid allocating that too.
Bharath Rupireddy, tweaked a bit by me
Discussion: https://postgr.es/m/CALj2ACXcCKaGPY0whowqrJ4OPJvDnTssgpGCzvuFQu5z0CXb-g@mail.gmail.com
Diffstat (limited to 'src/test/modules/commit_ts/expected/commit_timestamp.out')
0 files changed, 0 insertions, 0 deletions