pgsql: Refactor CopyOneRowTo

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor CopyOneRowTo
Date: 2024-08-16 11:05:25
Message-ID: E1seulp-004QIH-Of@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor CopyOneRowTo

The handling of binary and text formats are quite different here, so
it's more clear to check for the format first and have two separate
loops.

Author: jian he <jian(dot)universality(at)gmail(dot)com>
Reviewed-by: Ilia Evdokimov, Junwang Zhao
Discussion: https://www.postgresql.org/message-id/CACJufxFzHCeFBQF0M%2BSgk_NwknWuQ4oU7tS1isVeBrbhcKOHkg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3943da46bc54006ec4849bc7541cf4e674b700eb

Modified Files
--------------
src/backend/commands/copyto.c | 39 ++++++++++++++++++++-------------------
1 file changed, 20 insertions(+), 19 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2024-08-16 12:18:25 pgsql: Relax fsyncing at end of a bulk load that was not WAL-logged
Previous Message Heikki Linnakangas 2024-08-16 10:28:54 pgsql: Remove unused 'cur_skey' argument from IndexScanOK()