Re: Allow COPY's 'text' format to output a header

Cynthia Shang <cynthia.shang@crunchydata.com>

From: Cynthia Shang <cynthia.shang@crunchydata.com>
To: Simon Muller <samullers@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2018-07-25T17:36:54Z
Lists: pgsql-hackers

Attachments

On Wed, Jul 25, 2018 at 1:24 PM, Cynthia Shang
<cynthia.shang@crunchydata.com> wrote:

> With regards to #2, the copy.source tests are for things requiring
> replacement when running the tests. Given that these copy tests do not, I
> have moved the current last set of copy tests to the copy2.sql file and have
> provided an attached patch.

The patch appears in the RAW and in your email (hopefully) but it
doesn't appear in the thread archive so I am reattaching from a
different email client.

Commits

  1. Fix two issues with HEADER MATCH in COPY

  2. Add header matching mode to COPY FROM

  3. Add HEADER support to COPY text format

  4. Fix handling of redundant options with COPY for "freeze" and "header"