Fix small error in COPY FROM progress reporting.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 4 Feb 2021 15:40:33 +0000 (17:40 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 4 Feb 2021 15:40:33 +0000 (17:40 +0200)
commit2f86ab305e7fbc7b84960079551cf9cafd29684f
tree18861f4d59a0fbe8037d9024db5fbb04824c0216
parent3c78e0569ca04f4c92f0adcd74471398bb7b2e55
Fix small error in COPY FROM progress reporting.

The # of bytes processed was accumulated slightly incorrectly. After
loading more data to the input buffer, we added the number of bytes in
the buffer to the sum. But in case of multi-byte characters or escapes,
there can be a few unprocessed bytes left over from previous load in the
buffer. Those bytes got counted twice.
src/backend/commands/copyfromparse.c