diff --git a/src/test/subscription/t/100_bugs.pl b/src/test/subscription/t/100_bugs.pl index 4344eb581da..c55fbe9696c 100644 --- a/src/test/subscription/t/100_bugs.pl +++ b/src/test/subscription/t/100_bugs.pl @@ -605,11 +605,14 @@ $node_publisher->safe_psql('postgres', "DROP DATABASE regress_db"); $node_publisher->stop('fast'); -# Ensure logical decoder doesn't crash if error occurs -# while processing an INSERT ... ON CONFLICT statement. -$node_publisher = PostgreSQL::Test::Cluster->new('logical_decoder'); -$node_publisher->init(allows_streaming => 'logical'); -$node_publisher->start; +# https://postgr.es/m/19c7623e882.4080fd5426212.311756747309556767%40zohocorp.com + +# The bug was that when an ERROR was raised while processing an INSERT ... ON +# CONFLICT statement, the decoded change misses to be free'd. This can cause an +# assertion failure if enabled. + +$node_publisher->rotate_logfile(); +$node_publisher->start(); # The publication row filter WHERE ((a / 0) > 0) will trigger a division by zero error. $node_publisher->safe_psql(