Re: Logical Replication - detail message with names of missing columns
| От | Tom Lane |
|---|---|
| Тема | Re: Logical Replication - detail message with names of missing columns |
| Дата | |
| Msg-id | 374158.1599835943@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Logical Replication - detail message with names of missing columns (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
Re: Logical Replication - detail message with names of missing columns
|
| Список | pgsql-hackers |
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2020-Sep-11, Tom Lane wrote:
>> NO. The convention is to write \"...\" in the translatable message.
> There is a problem here though, which is that the quoted strings in
> question are part of a list of columns. There's no way to keep that
> list as a translatable string, so that approach doesn't work here.
> What appears in the translatable string is:
> logical replication target relation "%s" is missing replicated columns: %s
Check, but you could imagine that the column-list string is constructed
with code along the lines of
if (first)
appendStringInfo(buf, _("\"%s\""), colname);
else
appendStringInfo(buf, _(", \"%s\""), colname);
thus allowing a translator to replace the quote marks. Might not be
worth the trouble. In any case, the point here is that we're not
trying to construct valid SQL so quote_identifier is not the right
tool for the job.
regards, tom lane
В списке pgsql-hackers по дате отправления: