Re: [Refactor]Avoid to handle FORCE_NOT_NULL/FORCE_NULL options when COPY TO

Zhang Mingli <zmlpostgres@gmail.com>

From: Mingli Zhang <zmlpostgres@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, guofenglinux@gmail.com, pgsql-hackers@postgresql.org
Date: 2022-11-01T15:45:45Z
Lists: pgsql-hackers
Hi,

>

> The point about cleaning up the attribute handling of FORCE_NOT_NULL
> and FORCE_NULL in the COPY TO path is a good catch, though, so let's
> remove all that.  I'll go apply this part of the patch in a bit, or
> tomorrow.
> --
> Michael


Thanks for review!

Commits

  1. Remove code handling FORCE_NULL and FORCE_NOT_NULL for COPY TO

  2. Add more tests for COPY with incorrect option combinations

  3. Split copy.c into four files.