pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify leader error reporting for parallel apply worker failur
Date: Tue, 10 Nov 2026 08:24:42 +0000
Message-ID: <E1xQh9m-000000009wD-0zo2@gemulon.postgresql.org> (raw)

Simplify leader error reporting for parallel apply worker failures.

When a parallel apply worker failed, the leader copied the worker's error
context into its own error and appended the context of whatever it was
applying at that moment. The failed transaction was thus logged twice,
and the log read as if both contexts belonged to the same transaction.

The worker has already logged its error with the context of the failed
transaction. Have the leader report only that the worker exited due to an
error, using its own error context.

Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Author: vignesh C <vignesh21@gmail.com>
Reviewed-by: Zhijie Hou <houzhijie22@gmail.com>
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>
Reviewed-by: Ajin Cherian <itsajin@gmail.com>
Reviewed-by: Takeshi Ideriha <iderihatakeshi@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CALDaNm0SSCS5EJ_KNXau_3iCr_KrpKth=ZrTeOf1DCFbE=3=9w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/952bab8b74d40fcfd25e1949865c3907e676504e

Modified Files
--------------
.../replication/logical/applyparallelworker.c      | 46 +++++++---------------
1 file changed, 15 insertions(+), 31 deletions(-)



Message-ID: <E1xQh9m-000000009wD-0zo2@gemulon.postgresql.org>
Permalink:  ../E1xQh9m-000000009wD-0zo2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xQh9m-000000009wD-0zo2@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Simplify leader error reporting for parallel apply worker failur
  In-Reply-To: <E1xQh9m-000000009wD-0zo2@gemulon.postgresql.org>
  References: <E1xQh9m-000000009wD-0zo2@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox