| From: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
|---|---|
| To: | Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Cc: | Álvaro Herrera <alvherre(at)kurilemu(dot)de>, David Rowley <dgrowleyml(at)gmail(dot)com> |
| Subject: | Re: quoteOneName() inconsistency with quote_all_identifiers — replacement API proposed |
| Date: | 2026-04-13 02:53:26 |
| Message-ID: | A15ED673-5796-41A1-A9A8-4F04A0BDD6A0@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On Nov 21, 2025, at 18:03, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>
> Fixed a compile warning in v4.
>
> Best regards,
> Chao Li (Evan)
> ---------------------
> HighGo Software Co., Ltd.
> https://www.highgo.com/
>
>
> On Fri, Nov 21, 2025 at 1:52 PM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>
> On Thu, Nov 20, 2025 at 8:28 PM Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
> Hi,
>
> > - appendStringInfo(&buffer, _("text search configuration %s"),
> > - quote_qualified_identifier(nspname,
> > - NameStr(cfgForm->cfgname)));
> > + appendStringInfoQualifiedIdentifier(&buffer,
> > + _("text search configuration "),
> > + nspname, NameStr(cfgForm->cfgname), NULL);
> > ReleaseSysCache(tup);
> > break;
> > }
>
> This doesn't work from a i18n point of view. In the original
> formulation, the translator is free to place the %s wherever it suits
> the language. In the new one there's no such freedom: the name will be
> appended at the end. Some existing translations:
>
> ko.po:msgid "text search configuration %s"
> ko.po-msgstr "%s 전문 검색 구성"
>
> tr.po:msgid "text search configuration %s"
> tr.po-msgstr "%s metin arama yapılandırması"
>
> Thanks for the feedback. I reverted that piece of change in v3.
>
> Best regards,
> Chao Li (Evan)
> ---------------------
> HighGo Software Co., Ltd.
> https://www.highgo.com/
Rebased.
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
| Attachment | Content-Type | Size |
|---|---|---|
| v5-0001-Add-appendStringInfoIdentifier-to-avoid-intermedi.patch | application/octet-stream | 11.6 KB |
| v5-0002-Use-appendStringInfoIdentifier-throughout-ri_trig.patch | application/octet-stream | 21.9 KB |
| v5-0003-Remove-quoteOneName-and-related-buffer-sizing-mac.patch | application/octet-stream | 11.5 KB |
| v5-0004-Use-appendStringInfoIdentifier-in-more-places.patch | application/octet-stream | 34.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | vignesh C | 2026-04-13 03:21:06 | Re: EXCEPT TABLE - Case inconsistency for describe \d and \dRp+ |
| Previous Message | David Rowley | 2026-04-13 02:43:01 | Re: Small and unlikely overflow hazard in bms_next_member() |