Re: file_fdw: Support multi-line HEADER option.

songjinzhou <tsinghualucky912@foxmail.com>

From: songjinzhou <tsinghualucky912@foxmail.com>
To: Fujii Masao <masao.fujii@gmail.com>, Shinya Kato <shinya11.kato@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-01-09T12:50:56Z
Lists: pgsql-hackers
Hi Shinya Kato

I tested the patch and have no functional questions. I have a small question: Is it necessary to add "(also as a string, to support file_fdw options)" to the final `ereport` error message in `defCheckCopyHeaderString`? Like in one of your comments below.

Thank you.

songjinzhou
tsinghualucky912@foxmail.com

Commits

  1. file_fdw: Support multi-line HEADER option.

  2. Improve the error message in COPY with HEADER option.

  3. Support multi-line headers in COPY FROM command.