PG Bug reporting form <noreply@postgresql.org> writes:
> Standby cluster does not start after building from Primary cluster.
I think your archiving setup is broken:
> archive_command = 'cp %p /dev/null'
> ...
> restore_command = 'cp /opt/archivelog/%f %p'
BTW, "cp" is widely regarded as not being safe enough for production
archiving, because it doesn't fsync. But this archive_command
isn't even trying. So it's not surprising if there's not enough WAL
to recover from.
regards, tom lane