Thread: pgsql: Fix ALTER PUBLICATION...DROP TABLE behavior.
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(-)