Re: Add header support to text format and matching feature

Rémi Lapeyre <remi.lapeyre@lenstra.fr>

From: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
To: Zhihong Yu <zyu@yugabyte.com>
Cc: David Steele <david@pgmasters.net>, Michael Paquier <michael@paquier.xyz>, vignesh C <vignesh21@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>, Daniel Verite <daniel@manitou-mail.org>
Date: 2021-04-11T14:35:12Z
Lists: pgsql-hackers

Attachments

> 
> >> This now reads "Represents whether the header must be absent, present or match.”. 
> 
> Since match shouldn't be preceded with be, I think we can say:
> 
> Represents whether the header must match, be absent or be present.

Thanks, here’s a v10 version of the patch that fixes this.

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"