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 <[email protected]> Reviewed-by: Ilia Evdokimov, Junwang Zhao Discussion: https://www.postgresql.org/message-id/cacjufxfzhcefbqf0m%[email protected] 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(-)
