On 2020-Sep-16, Tom Lane wrote: > Yeah, that works for me. It doesn't allow for having just one > set_ps_display() call ahead of the switch, but that isn't that > big a loss. We cannot merge the EndReplicationCommand calls to > after the switch, because some of the cases don't want one here; > so that partial duplication is inescapable.
Right. > Note that your changes need to be backpatched into v13, > because AFAICS this code is violating the FE/BE protocol > right now --- it's just luck that libpq isn't moaning > about extra CommandComplete messages. But I don't think > we want to change the ps title behavior in v13 at this > late date, so that part should be HEAD-only. Ok, will do. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services