PostgreSQL – waiting for checkpoint to complete
Call pg_basebackup
with the option --checkpoint=fast
to force a fast checkpoint rather than waiting for a spread one to complete.
It's possible to force a checkpoint to complete. To do so, run CHECKPOINT;
on the master server:
$ sudo su - postgres
$ psql
postgres=# CHECKPOINT;