pgsql: Fix ALTER PUBLICATION...DROP TABLE behavior. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Fix ALTER PUBLICATION...DROP TABLE behavior.
Date
Msg-id E1l3rV7-0000DL-8S@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make storage/standby.h compile standalone again.
Next
From: David Rowley
Date:
Subject: pgsql: Fix hypothetical bug in heap backward scans