Re: Add header support to text format and matching feature - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: Add header support to text format and matching feature
Date
Msg-id 20220614091319.jk4he5migtpwyd7r@jrouhaud
Whole thread Raw
In response to Re: Add header support to text format and matching feature  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Add header support to text format and matching feature
Re: Add header support to text format and matching feature
List pgsql-hackers
On Mon, Jun 13, 2022 at 04:46:46PM +0900, Michael Paquier wrote:
> 
> Some nits.  I would suggest to reword this error message, like "cannot
> use \"match\" with HEADER in COPY TO".

Agreed.

> There is no need for the extra
> comment, and the error code should be ERRCODE_FEATURE_NOT_SUPPORTED.

Is there any rule for what error code should be used?

Maybe that's just me but I understand "not supported" as "this makes sense, but
this is currently a limitation that might be lifted later".

Here I don't think it can ever make to use MATCH for a COPY TO, apart from
ignoring its meaning and accept it as an alias for HEADER ON.  But if we don't
allow this loose alias now it would just cause trouble to later allow it so
having an invalid syntax or something like that sounds more suited.



pgsql-hackers by date:

Previous
From: "shiy.fnst@fujitsu.com"
Date:
Subject: RE: Replica Identity check of partition table on subscriber
Next
From: Álvaro Herrera
Date:
Subject: Re: support for MERGE