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 ALTER PUBLICATION...DROP TABLE behavior.
Date: Mon, 25 Jan 2021 02:21:09 +0000
Message-ID: <E1l3rV7-0000DL-8S@gemulon.postgresql.org> (raw)

Fix ALTER PUBLICATION...DROP TABLE behavior.

Commit 69bd60672 fixed the initialization of streamed transactions for
RelationSyncEntry. It forgot to initialize the publication actions while
invalidating the RelationSyncEntry due to which even though the relation
is dropped from a particular publication we still publish its changes. Fix
it by initializing pubactions when entry got invalidated.

Author: Japin Li and Bharath Rupireddy
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CALj2ACV+0UFpcZs5czYgBpujM9p0Hg1qdOZai_43OU7bqHU_xw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/40ab64c1ec1cb9bd73695f519cf66ddbb97d8144

Modified Files
--------------
src/backend/replication/pgoutput/pgoutput.c | 11 ++++
src/test/subscription/t/001_rep_changes.pl  | 95 ++++++++++++++++++++++++++++-
2 files changed, 105 insertions(+), 1 deletion(-)



Message-ID: <E1l3rV7-0000DL-8S@gemulon.postgresql.org>
Permalink:  ../E1l3rV7-0000DL-8S@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l3rV7-0000DL-8S@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 ALTER PUBLICATION...DROP TABLE behavior.
  In-Reply-To: <E1l3rV7-0000DL-8S@gemulon.postgresql.org>
  References: <E1l3rV7-0000DL-8S@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