pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add HEADER support to COPY text format
Date: Fri, 28 Jan 2022 08:49:55 +0000
Message-ID: <E1nDMx9-0000EZ-8o@gemulon.postgresql.org> (raw)

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....

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/43f33dc018a4b77ced78a0a6df8ed5d450cfe5f4

Modified Files
--------------
contrib/file_fdw/expected/file_fdw.out |  4 +---
contrib/file_fdw/sql/file_fdw.sql      |  1 -
doc/src/sgml/ref/copy.sgml             |  2 +-
src/backend/commands/copy.c            |  4 ++--
src/backend/commands/copyto.c          |  5 ++++-
src/include/commands/copy.h            |  2 +-
src/test/regress/expected/copy.out     |  8 ++++++++
src/test/regress/sql/copy.sql          | 12 ++++++++++++
8 files changed, 29 insertions(+), 9 deletions(-)



Message-ID: <E1nDMx9-0000EZ-8o@gemulon.postgresql.org>
Permalink:  ../E1nDMx9-0000EZ-8o@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nDMx9-0000EZ-8o@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Add HEADER support to COPY text format
  In-Reply-To: <E1nDMx9-0000EZ-8o@gemulon.postgresql.org>
  References: <E1nDMx9-0000EZ-8o@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox