Re: Add header support to text format and matching feature

Поиск
Список
Период
Сортировка
От Julien Rouhaud
Тема Re: Add header support to text format and matching feature
Дата
Msg-id 20220614091319.jk4he5migtpwyd7r@jrouhaud
обсуждение исходный текст
Ответ на Re: Add header support to text format and matching feature  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Add header support to text format and matching feature  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Re: Add header support to text format and matching feature  ("Daniel Verite" <daniel@manitou-mail.org>)
Список 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 по дате отправления:

Предыдущее
От: "shiy.fnst@fujitsu.com"
Дата:
Сообщение: RE: Replica Identity check of partition table on subscriber
Следующее
От: Álvaro Herrera
Дата:
Сообщение: Re: support for MERGE