Add HEADER support to COPY text format

Peter Eisentraut <peter@eisentraut.org>

Commit: 43f33dc018a4b77ced78a0a6df8ed5d450cfe5f4
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-01-28T08:44:47Z
Releases: 15.0
Add HEADER support to COPY text format

The COPY CSV format supports the HEADER option to output a header
line.  This patch adds the same option to the default text format.  On
input, the HEADER option causes the first line to be skipped, same as
with CSV.

Author: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Discussion: https://www.postgresql.org/message-id/flat/CAF1-J-0PtCWMeLtswwGV2M70U26n4g33gpe1rcKQqe6wVQDrFA@mail.gmail.com

Files

Documentation touched

Discussion