Hi, On 2023-02-16 14:21:01 +0900, Kyotaro Horiguchi wrote: > I'm not sure why output plugin is involved in the delay mechanism.
+many The output plugin absolutely never should be involved in something like this. It was a grave mistake that OutputPluginUpdateProgress() calls were added to the commit callback and then proliferated. > It appears to me that it would be simpler if the delay occurred in reorder > buffer or logical decoder instead. This is a feature specific to walsender. So the riggering logic should either directly live in the walsender, or in a callback set in LogicalDecodingContext. That could be called from decode.c or such. Greetings, Andres Freund