Re: Remove a unnecessary backslash in CopyFrom

Tender Wang <tndrwang@gmail.com>

From: Tender Wang <tndrwang@gmail.com>
To: Yugo Nagata <nagata@sraoss.co.jp>
Cc: pgsql-hackers@postgresql.org
Date: 2024-11-12T02:58:50Z
Lists: pgsql-hackers
Yugo Nagata <nagata@sraoss.co.jp> 于2024年11月12日周二 10:46写道:

> Hi,
>
> I found a unnecessary backslash in CopyFrom().
>
>             if (cstate->opts.reject_limit > 0 && \
>                 cstate->num_errors > cstate->opts.reject_limit)
>
> It can be removed because this is not in a macro.
> I've attached a patch.
>

Yeah, agree. The patch LGTM.

-- 
Thanks,
Tender Wang

Commits

  1. Remove unnecessary backslash from CopyFrom() code.

  2. Add REJECT_LIMIT option to the COPY command.