summaryrefslogtreecommitdiff
path: root/src/include/commands/copy.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-01-28 09:22:53 +0100
committerPeter Eisentraut <peter@eisentraut.org>2022-01-28 09:44:47 +0100
commit43f33dc018a4b77ced78a0a6df8ed5d450cfe5f4 (patch)
treef372e2f7e3f37ee968c08f6cc6220b6657f90394 /src/include/commands/copy.h
parent5553cbd4fe3eb177b3266ca4a7e80159323608c2 (diff)
downloadpostgresql-43f33dc018a4b77ced78a0a6df8ed5d450cfe5f4.tar.gz
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
Diffstat (limited to 'src/include/commands/copy.h')
-rw-r--r--src/include/commands/copy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h
index c01cf42bcd..8694da5004 100644
--- a/src/include/commands/copy.h
+++ b/src/include/commands/copy.h
@@ -32,7 +32,7 @@ typedef struct CopyFormatOptions
bool binary; /* binary format? */
bool freeze; /* freeze rows on loading? */
bool csv_mode; /* Comma Separated Value format? */
- bool header_line; /* CSV header line? */
+ bool header_line; /* header line? */
char *null_print; /* NULL marker string (server encoding!) */
int null_print_len; /* length of same */
char *null_print_client; /* same converted to file encoding */