Thanks, I got replication in Postgres 12 to work and it is much better. Its options are part of the normal config, no more recovery.conf in the data directory, and the initial sync can now set up the master. PostgreSQL provide official packages for 12 on Ubuntu 18.04, so that's easy to set up using the existing upstream cookbook
We should update from Postgres 10 to 12 before setting up replication on the new server, I think that would be the easiest route. For our setup with just one database pg_upgrade looks like a good fit, I remember using it before, probably to switch from PostgreSQL 9 to 10
I'm merging this one, as they are now the same ACIs as in production
Issue: https://github.com/processone/ejabberd/issues/3191
Fixed in 00abf5d42c
Updating to 20.03 will fix this