Use um --write-recovery-conf
para configurar um servidor em espera.
--write-recovery-conf
Write a minimal recovery.conf in the output directory (or into the
base archive file when using tar format) to ease setting up a
standby server. The recovery.conf file will record the connection
settings and, if specified, the replication slot that pg_basebackup
is using, so that the streaming replication will use the same
settings later on.