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

Simon Muller <samullers@gmail.com>

From: Simon Muller <samullers@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: David Steele <david@pgmasters.net>, pgsql-hackers@postgresql.org
Date: 2018-07-04T20:44:32Z
Lists: pgsql-hackers

Attachments

On 14 May 2018 at 08:35, Simon Muller <samullers@gmail.com> wrote:

> Okay, I've added this to the next commitfest at
> https://commitfest.postgresql.org/18/1629/.
>
> Thanks both Michael and David for the feedback so far.
>

I noticed through the patch tester link at http://commitfest.cputube.org/
that my patch caused a file_fdw test to fail (since I previously tested
only with "make check" and not with "make check-world").

This v2 patch should fix that.

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"