From: | Justin Pryzby <pryzby(at)telsasoft(dot)com> |
---|---|
To: | v(dot)davydov(at)postgrespro(dot)ru |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, tgl(at)sss(dot)pgh(dot)pa(dot)us |
Subject: | Re: UPDATE operation terminates logical replication receiver process due to an assertion |
Date: | 2023-01-15 16:24:49 |
Message-ID: | 20230115162449.GE9837@telsasoft.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Jan 12, 2023 at 01:23:57PM +0300, v(dot)davydov(at)postgrespro(dot)ru wrote:
> Dear all,
>
> I think I've found a problem in logical replication that was introduced
> recently in the patch:
>
> Fix calculation of which GENERATED columns need to be updated
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=3f7836ff651ad710fef52fa87b248ecdfc6468dc
> There is an assertion which accidentally terminates logical replication
> worker process. The assertion was introduced in the patch. To reproduce the
> problem Postgres should be compiled with enabled assertions. The problem
> appears when executing UPDATE operation on a non-empty table with GENERATED
> columns and a BEFORE UPDATE trigger. The problem seems to appear on the
> latest snapshots of 13 and 14 versions (sorry, I haven't tested other
> versions).
>
> Stack:
> ------
> TRAP: FailedAssertion("relinfo->ri_GeneratedExprs != NULL", File: "execUtils.c", Line: 1292)
Yeah, confirmed under master branch and v15.
Tom ?
--
Justin
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2023-01-15 16:34:53 | Re: UPDATE operation terminates logical replication receiver process due to an assertion |
Previous Message | Nathan Bossart | 2023-01-15 16:13:28 | Re: constify arguments of copy_file() and copydir() |