From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix subscriber invalid memory access on DDL.
Date: Wed, 18 Dec 2019 03:06:15 +0000
Message-ID: <E1ihPfD-0008Rn-KD@gemulon.postgresql.org> (raw)
Fix subscriber invalid memory access on DDL.
This patch allows building the local relmap cache for a subscribed
relation after processing pending invalidation messages and potential
relcache updates. Without this, the attributes in the local cache don't
tally with the updated relcache entry leading to invalid memory access.
Reported-by Jehan-Guillaume de Rorthais
Author: Jehan-Guillaume de Rorthais and Vignesh C
Reviewed-by: Amit Kapila
Backpatch-through: 10
Discussion: https://postgr.es/m/20191025175929.7e90dbf5@firost
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/d6eca4958d78499b66aad9cf4b595b871c177e02
Modified Files
--------------
src/backend/replication/logical/relation.c | 38 ++++++++++++++++++++----------
1 file changed, 25 insertions(+), 13 deletions(-)
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: Fix subscriber invalid memory access on DDL.
In-Reply-To: <E1ihPfD-0008Rn-KD@gemulon.postgresql.org>
References: <E1ihPfD-0008Rn-KD@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