The error has completely gone and replication works fine. Your patch definitely works, my 8 prod & dev clusters + 4 replication slots works fine on 13.2 now. Only one error still sometimes gets occurred (as I showed before): "2021-03-23 11:44:52.932 EET [9272] LOG: could not rename temporary statistics file "pg_stat_tmp/global.tmp" to "pg_stat_tmp/global.stat": Permission denied"
On Sat, Mar 20, 2021 at 09:31:07AM +0900, Michael Paquier wrote: > Fine by me to remove that :)
Applied this stuff as of 909b449 for 13.3~ to address the bug, but I would not mind tweak more the areas and its comments if people have more ideas. Yaroslav, things should be good with the next minor release of Postgres. -- Michael