Re: Skipping logical replication transactions on subscriber side

From: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: "osumi(dot)takamichi(at)fujitsu(dot)com" <osumi(dot)takamichi(at)fujitsu(dot)com>, "houzj(dot)fnst(at)fujitsu(dot)com" <houzj(dot)fnst(at)fujitsu(dot)com>, Alexey Lesovsky <lesovsky(at)gmail(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Skipping logical replication transactions on subscriber side
Date: 2021-08-10 11:08:35
Message-ID: CAD21AoBcg7YhGcbGxfwHJdpawXS-yC+2yqbPYWL4b+jq+VVEmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Aug 10, 2021 at 3:29 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Tue, Aug 10, 2021 at 10:37 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> >
> > I've attached the latest patches that incorporated all comments I got
> > so far. Please review them.
> >
>
> I am not able to apply the latest patch
> (v6-0001-Add-errcontext-to-errors-happening-during-applyin) on HEAD,
> getting the below error:
> patching file src/backend/replication/logical/worker.c
> Hunk #11 succeeded at 1195 (offset 50 lines).
> Hunk #12 succeeded at 1253 (offset 50 lines).
> Hunk #13 succeeded at 1277 (offset 50 lines).
> Hunk #14 succeeded at 1305 (offset 50 lines).
> Hunk #15 succeeded at 1330 (offset 50 lines).
> Hunk #16 succeeded at 1362 (offset 50 lines).
> Hunk #17 succeeded at 1508 (offset 50 lines).
> Hunk #18 succeeded at 1524 (offset 50 lines).
> Hunk #19 succeeded at 1645 (offset 50 lines).
> Hunk #20 succeeded at 1671 (offset 50 lines).
> Hunk #21 succeeded at 1772 (offset 50 lines).
> Hunk #22 succeeded at 1828 (offset 50 lines).
> Hunk #23 succeeded at 1934 (offset 50 lines).
> Hunk #24 succeeded at 1962 (offset 50 lines).
> Hunk #25 succeeded at 2399 (offset 50 lines).
> Hunk #26 FAILED at 2405.
> Hunk #27 succeeded at 3730 (offset 54 lines).
> 1 out of 27 hunks FAILED -- saving rejects to file
> src/backend/replication/logical/worker.c.rej
>

Sorry, I forgot to rebase the patches to the current HEAD. Since
stream_prepare is introduced, I'll add some tests to the patches. I’ll
submit the new patches tomorrow that also incorporates your comments
on v6-0001 patch.

Regards,

--
Masahiko Sawada
EDB: https://www.enterprisedb.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ranier Vilela 2021-08-10 11:21:36 Re: Bug in huge simplehash
Previous Message Masahiko Sawada 2021-08-10 11:06:45 Re: pgsql: pgstat: Bring up pgstat in BaseInit() to fix uninitialized use o