| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Reorganize GUC structs |
| Date: | 2025-11-12 08:41:07 |
| Message-ID: | c8e0411b-6d99-4254-aeb5-15a6245f0db2@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 07.11.25 16:53, Álvaro Herrera wrote:
> On 2025-Nov-07, Peter Eisentraut wrote:
>
>> Actually, the ", " already exists in the message catalog, so adding a
>> comment here might confuse the other site.
>
> This one?
> #: replication/logical/relation.c:245
> #, c-format
> msgid ", \"%s\""
> msgstr ", »%s«"
>
> It's different. (And warrants a comment too, IMO)
Well, that's the one, but the code actually looks like this now:
while ((i = bms_next_member(atts, i)) >= 0)
{
attcnt++;
if (attcnt > 1)
appendStringInfoString(&attsbuf, _(", "));
appendStringInfo(&attsbuf, _("\"%s\""), remoterel->attnames[i]);
}
The catalog entries you are showing appear to be from pre-PG18.
There are also similar instances in ExecBuildSlotValueDescription() that
are not marked up for gettext but perhaps should be. There might be
others, and I would expect more like this to appear over time, as people
like to add more detail like this to diagnostics messages.
Do you have a suggestion what kind of comment to attach there?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Man Zeng | 2025-11-12 08:45:16 | Re: Extended Statistics set/restore/clear functions. |
| Previous Message | Chao Li | 2025-11-12 08:40:34 | Re: Make PQgetResult() not return NULL on out-of-memory error |