| From: | Rémi Lapeyre <remi(dot)lapeyre(at)henki(dot)fr> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Cc: | Rémi Lapeyre <remi(dot)lapeyre(at)henki(dot)fr> |
| Subject: | [PATCH v1] Allow COPY "test" to output a header and add header matching mode to COPY FROM |
| Date: | 2020-02-25 21:38:32 |
| Message-ID: | 20200225213832.11511-1-remi.lapeyre@lenstra.fr |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi, here's a new version of the patch with the header matching feature.
I should apply cleanly on master, let me know if anything's wrong.
---
contrib/file_fdw/input/file_fdw.source | 7 +-
contrib/file_fdw/output/file_fdw.source | 13 ++--
doc/src/sgml/ref/copy.sgml | 9 ++-
src/backend/commands/copy.c | 93 ++++++++++++++++++++++---
src/test/regress/input/copy.source | 71 ++++++++++++++-----
src/test/regress/output/copy.source | 58 ++++++++++-----
6 files changed, 202 insertions(+), 49 deletions(-)
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Allow-COPY-test-to-output-a-header-and-add-header.patch | text/x-patch | 17.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2020-02-25 21:44:40 | Re: Ought to use heap_multi_insert() for pg_attribute/depend insertions? |
| Previous Message | Tom Lane | 2020-02-25 21:00:47 | Re: [postgis-devel] About EXTENSION from UNPACKAGED on PostgreSQL 13 |