pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix valgrind issue in pgoutput.c.
Date: Fri, 18 Jun 2021 03:24:27 +0000
Message-ID: <E1lu57L-00069k-TY@gemulon.postgresql.org> (raw)

Fix valgrind issue in pgoutput.c.

We use a tuple conversion map for partitions when replicating using an
ancestor's schema to convert tuples from partition's type to the
ancestor's. Before this map got initialized, we were processing
invalidation messages which access this map.

This issue happens only in version 13 as in HEAD we already have a code
that initializes each relation entry before we can process any
invalidation message. This issue is introduced by commit d250568121 in
version 13.

Reported-by: Tom Lane, as per buildfarm meber skink
Author: Amit Langote
Reviewed-by: Dilip Kumar, Amit Kapila
Discussion: https://www.postgresql.org/message-id/648020.1623854904@sss.pgh.pa.us

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/357cb8f07f95665ea533ff534821c22c35b01288

Modified Files
--------------
src/backend/replication/pgoutput/pgoutput.c | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)



Message-ID: <E1lu57L-00069k-TY@gemulon.postgresql.org>
Permalink:  ../E1lu57L-00069k-TY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lu57L-00069k-TY@gemulon.postgresql.org

 · 

reply

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 valgrind issue in pgoutput.c.
  In-Reply-To: <E1lu57L-00069k-TY@gemulon.postgresql.org>
  References: <E1lu57L-00069k-TY@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