Refactor CopyOneRowTo

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 3943da46bc54006ec4849bc7541cf4e674b700eb
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-08-16T10:48:10Z
Releases: 18.0
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.universality@gmail.com>
Reviewed-by: Ilia Evdokimov, Junwang Zhao
Discussion: https://www.postgresql.org/message-id/CACJufxFzHCeFBQF0M%2BSgk_NwknWuQ4oU7tS1isVeBrbhcKOHkg@mail.gmail.com

Files

PathChange+/−
src/backend/commands/copyto.c modified +20 −19

Discussion