Make the errcontext message in logical replication worker translation friendly.
authorAmit Kapila <akapila@postgresql.org>
Mon, 7 Mar 2022 03:03:58 +0000 (08:33 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 7 Mar 2022 03:03:58 +0000 (08:33 +0530)
commit5e0e99a80b2f41c8e9ed0f4071892d9e797a12be
treec94a552f30655805f9b68318136012ed95949ffa
parent9e98583898c347e007958c8a09911be2ea4acfb9
Make the errcontext message in logical replication worker translation friendly.

Previously, the message for logical replication worker errcontext is
incrementally built, which was not translation friendly.  Instead, we use
complete sentences with if-else branches.

We also remove the commit timestamp from the context message since it's
not important information and made the message long.

Author: Masahiko Sawada
Reviewed-by: Takamichi Osumi, and Amit Kapila
Discussion: https://postgr.es/m/CAD21AoBarBf2oTF71ig2g_o=3Z_Dt6_sOpMQma1kFgbnA5OZ_w@mail.gmail.com
src/backend/replication/logical/worker.c