mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-20 16:33:23 +02:00
COPY FROM supports the HEADER option to silently discard the header line from a CSV or text file. It is possible to load by mistake a file that matches the expected format, for example, if two text columns have been swapped, resulting in garbage in the database. This adds a new option value HEADER MATCH that checks the column names in the header line against the actual column names and errors out if they do not match. Author: Rémi Lapeyre <remi.lapeyre@lenstra.fr> Reviewed-by: Daniel Verite <daniel@manitou-mail.org> Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/CAF1-J-0PtCWMeLtswwGV2M70U26n4g33gpe1rcKQqe6wVQDrFA@mail.gmail.com |
||
---|---|---|
.. | ||
data | ||
expected | ||
sql | ||
.gitignore | ||
file_fdw--1.0.sql | ||
file_fdw.c | ||
file_fdw.control | ||
Makefile |