Move check for binary mode and on_error option to the appropriate location.
authorFujii Masao <fujii@postgresql.org>
Tue, 8 Oct 2024 09:23:43 +0000 (18:23 +0900)
committerFujii Masao <fujii@postgresql.org>
Tue, 8 Oct 2024 09:23:43 +0000 (18:23 +0900)
commita39297ec026c556b1bf2963dde766db31a2c3d2d
treeb1f6ba075a96d0eddcff1c5430df11d1be60a6b3
parent4ac2a9beceb10d44806d2cf157d5a931bdade39e
Move check for binary mode and on_error option to the appropriate location.

Commit 9e2d870119 placed the check for binary mode and on_error
before default values were inserted, which was not ideal.
This commit moves the check to a more appropriate position
after default values are set.

Additionally, the comment incorrectly mentioned two checks before
inserting defaults, when there are actually three. This commit corrects
that comment.

Author: Atsushi Torikoshi
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/8830518a-28ac-43a2-8a11-1676d9a3cdf8@oss.nttdata.com
src/backend/commands/copy.c