pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix small error in COPY FROM progress reporting.
Date: Thu, 04 Feb 2021 15:41:18 +0000
Message-ID: <E1l7gkw-0007ym-DF@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1l7gkw-0007ym-DF@gemulon.postgresql.org>
Permalink:  ../E1l7gkw-0007ym-DF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l7gkw-0007ym-DF@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Fix small error in COPY FROM progress reporting.
  In-Reply-To: <E1l7gkw-0007ym-DF@gemulon.postgresql.org>
  References: <E1l7gkw-0007ym-DF@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox