RE: Add the replication origin name and commit-LSN to logical replication worker errcontext
Takamichi Osumi (Fujitsu) <osumi.takamichi@fujitsu.com>
From: "osumi.takamichi@fujitsu.com" <osumi.takamichi@fujitsu.com>
To: 'Masahiko Sawada' <sawada.mshk@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Peter Smith <smithpb2250@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-03-04T06:15:49Z
Lists: pgsql-hackers
On Friday, March 4, 2022 2:23 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > I've attached updated patches. Hi, thank you for updating the patch. One comment on v4. In v4-0002, we introduce 'commit_lsn' in the ApplyErrorCallbackArg. This member is set for prepare, rollback prepared and stream_abort as well. The new log message format is useful when we have a prepare transaction that keeps failing on the subscriber and want to know the target transaction for the pg_replication_origin_advance(), right ? If this is true, I wasn't sure if the name 'commit_lsn' is the most accurate name for this variable. Should we adjust the name a bit ? Even when we decide to continue to use 'commit_lsn', it might be better to add some comments near the definition, I feel. Best Regards, Takamichi Osumi
Commits
-
Add the additional information to the logical replication worker errcontext.
- d3e8368c4b6e 15.0 landed
-
Make the errcontext message in logical replication worker translation friendly.
- 5e0e99a80b2f 15.0 landed
-
Add logical change details to logical replication worker errcontext.
- abc0910e2e0a 15.0 cited