pgsql: Fix small error in COPY FROM progress reporting.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix small error in COPY FROM progress reporting.
Date: 2021-02-04 15:41:18
Message-ID: E1l7gkw-0007ym-DF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2f86ab305e7fbc7b84960079551cf9cafd29684f

Modified Files
--------------
src/backend/commands/copyfromparse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2021-02-04 23:43:44 pgsql: Harden nbtree page deletion.
Previous Message Peter Eisentraut 2021-02-04 12:40:28 pgsql: Refactor Windows error message for easier translation