[PATCH v1] Allow COPY "text" format to output a header - Mailing list pgsql-hackers

From Rémi Lapeyre
Subject [PATCH v1] Allow COPY "text" format to output a header
Date
Msg-id 20200204132503.24094-1-remi.lapeyre@henki.fr
Whole thread Raw
Responses Re: [PATCH v1] Allow COPY "text" format to output a header
List 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

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: More DSM slot exhaustion bugs
Next
From: Julien Rouhaud
Date:
Subject: Re: Expose lock group leader pid in pg_stat_activity