Re: Logical Replication - detail message with names of missing columns

Поиск
Список
Период
Сортировка
Искать
От
Bharath Rupireddy
Тема
Re: Logical Replication - detail message with names of missing columns
Дата
Msg-id
CALj2ACVPWXXreRJ6N9tZ-Q932v=csEJffEBNBhvDKRoTkmCXYA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
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 Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Tom Lane <tgl@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 Tom Lane <tgl@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 Tom Lane <tgl@sss.pgh.pa.us>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Amit Kapila <amit.kapila16@gmail.com>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Amit Kapila <amit.kapila16@gmail.com>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Amit Kapila <amit.kapila16@gmail.com>
Re: Logical Replication - detail message with names of missing columns Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Logical Replication - detail message with names of missing columns Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
On Fri, Sep 11, 2020 at 9:05 PM Alvaro Herrera  wrote:
>
> On 2020-Sep-11, Tom Lane wrote:
>
> > 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.
>
> This works OK for my language at least.  I couldn't find any guidance on
> whether there's a problem doing things this way for RTL languages etc,
> but +1 for doing it this way.
>

Thanks for the comments. I changed the patch to use the string
preparation in below fashion. Attaching the v5 patch. Please let me
know if there are any further inputs.

+                if (missingattcnt == 1)
+                    appendStringInfo(&missingattsbuf, _("\"%s\""),
+                                     remoterel->attnames[i]);
+                else
+                    appendStringInfo(&missingattsbuf, _(", \"%s\""),
+                                     remoterel->attnames[i]);

With Regards,
Bharath Rupireddy.
EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления
От: Magnus Hagander
Дата:
От: Tom Lane
Дата:
FAQ