Re: [BUG] Logical replica crash if there was an error in a function.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Anton A(dot) Melnikov" <aamelnikov(at)inbox(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Maxim Orlov <orlovmg(at)gmail(dot)com>
Subject: Re: [BUG] Logical replica crash if there was an error in a function.
Date: 2022-09-24 17:27:23
Message-ID: 2295855.1664040443@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Anton A. Melnikov" <aamelnikov(at)inbox(dot)ru> writes:
> [ v4-0001-Fix-logical-replica-assert-on-func-error.patch ]

I took a quick look at this. I think you're solving the
problem in the wrong place. The real issue is why are
we not setting up ActivePortal correctly when running
user-defined code in a logrep worker? There is other code
that expects that to be set, eg EnsurePortalSnapshotExists.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-09-24 17:41:38 Re: identifying the backend that owns a temporary schema
Previous Message Noah Misch 2022-09-24 17:20:20 Re: tweak to a few index tests to hits ambuildempty() routine.