From: Tom Lane <tgl@sss.pgh.pa.us>
To: sbernikov@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17054: Memory corruption in logical replication worker when replicating into partitioned table
Date: Fri, 11 Jun 2021 16:31:29 -0400
Message-ID: <2061771.1623443489@sss.pgh.pa.us> (raw)
In-Reply-To: <1819098.1623369807@sss.pgh.pa.us>
References: <17054-637193af919f0024@postgresql.org>
<1819098.1623369807@sss.pgh.pa.us>
I wrote:
> PG Bug reporting form <noreply@postgresql.org> writes:
>> When logical replication target is a partitioned table then execution of any
>> DDL on source table leads to crash of target (subscriber) server.
> Thanks for the report! I duplicated the crash on v13 branch tip,
I can't reproduce this anymore after commit b270713fd. I think it's
probably the same thing I found while making a test for your other
report:
logicalrep_partition_open() failed to ensure that the
LogicalRepPartMapEntry it built for a partition was fully
independent of that for the partition root, leading to
trouble if the root entry was later freed or rebuilt.
My failure to see a crash on HEAD was probably an accidental
issue of memory reuse patterns.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, sbernikov@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17054: Memory corruption in logical replication worker when replicating into partitioned table
In-Reply-To: <2061771.1623443489@sss.pgh.pa.us>
* 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