| From: | Rémi Lapeyre <remi(dot)lapeyre(at)henki(dot)fr> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Cc: | Rémi Lapeyre <remi(dot)lapeyre(at)henki(dot)fr> |
| Subject: | [PATCH v1] Allow COPY "text" format to output a header |
| Date: | 2020-02-04 13:25:03 |
| Message-ID: | 20200204132503.24094-1-remi.lapeyre@henki.fr |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
This patch adds the possibility to use the "header" option when using COPY with
the text format. A todo entry was opened for this and I updated the tests and
the documentation.
This was previously discussed at https://www.postgresql.org/message-id/flat/CACfv%2BpJ31tesLvncJyP24quo8AE%2BM0GP6p6MEpwPv6yV8%3DsVHQ%40mail.gmail.com
Greetings,
Rémi
---
doc/src/sgml/ref/copy.sgml | 3 +-
src/backend/commands/copy.c | 11 ++++---
src/test/regress/input/copy.source | 46 +++++++++++++++++++----------
src/test/regress/output/copy.source | 41 +++++++++++++++----------
4 files changed, 64 insertions(+), 37 deletions(-)
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Allow-COPY-text-format-to-output-a-header.patch | text/x-patch | 7.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Julien Rouhaud | 2020-02-04 14:27:25 | Re: Expose lock group leader pid in pg_stat_activity |
| Previous Message | Thomas Munro | 2020-02-04 10:44:48 | More DSM slot exhaustion bugs |