| From: | Steven Niu <niushiji(at)gmail(dot)com> |
|---|---|
| To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
| Cc: | Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: file_fdw: Support multi-line HEADER option. |
| Date: | 2026-01-21 08:18:41 |
| Message-ID: | MN2PR15MB3021F257D141B286206F0DC6A796A@MN2PR15MB3021.namprd15.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Sent: Wednesday, January 21, 2026 15:38
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>; Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>; PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: file_fdw: Support multi-line HEADER option.
On Wed, Jan 21, 2026 at 12:07 AM Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> On 2026-Jan-20, Fujii Masao wrote:
>
> > I'm thinking to commit the attached patches.
>
> In 0001 I would recommend to move the string "match" to outside the
> message. Otherwise a translator might be tempted to translate it, and
> then it would make no sense. (I have never seen this happen in
> Postgres, but I have seen this kind of translation mistake in other
> software, and it is infuriating.)
Thanks for the review!
Agreed. I've updated the patches as suggested.
The revised versions are attached.
Regards,
--
Fujii Masao
________________________________________
Hi Fujii-san,
I've noticed an inconsistent naming convention in the patch:
we use a capitalized Boolean for the boolean type, but a lowercase integer when referring to the value type.
+ errmsg("%s requires a Boolean value, an integer "
+ "value greater than or equal to zero
Is there any reason why we follow this mixed style?
Another nitpick in v6-0001 patch:
tow whitespaces are between "special" and "value"
+ second %s is the special value "match" for that option */
Thanks,
Steven
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Smith | 2026-01-21 08:22:44 | Re: Fix how some lists are displayed by psql \d+ |
| Previous Message | Richard Guo | 2026-01-21 08:18:00 | Re: Remove no-op PlaceHolderVars |