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: Invalidate relcache when changing REPLICA IDENTITY index.
Date: Tue, 16 Nov 2021 04:28:50 +0000
Message-ID: <E1mmq5S-0003RH-EJ@gemulon.postgresql.org> (raw)

Invalidate relcache when changing REPLICA IDENTITY index.

When changing REPLICA IDENTITY INDEX to another one, the target table's
relcache was not being invalidated. This leads to skipping update/delete
operations during apply on the subscriber side as the columns required to
search corresponding rows won't get logged.

Author: Tang Haiying, Hou Zhijie
Reviewed-by: Euler Taveira, Amit Kapila
Backpatch-through: 10
Discussion: https://postgr.es/m/OS0PR01MB61133CA11630DAE45BC6AD95FB939@OS0PR01MB6113.jpnprd01.prod.outlook.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/232fd72a5eab3ab429497796bce6e7da9e67ca3f

Modified Files
--------------
src/backend/commands/tablecmds.c    |  6 +++
src/test/subscription/t/100_bugs.pl | 84 ++++++++++++++++++++++++++++++++++++-
2 files changed, 89 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1mmq5S-0003RH-EJ@gemulon.postgresql.org>
Permalink:  ../E1mmq5S-0003RH-EJ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mmq5S-0003RH-EJ@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: Invalidate relcache when changing REPLICA IDENTITY index.
  In-Reply-To: <E1mmq5S-0003RH-EJ@gemulon.postgresql.org>
  References: <E1mmq5S-0003RH-EJ@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