PGVER=9.4 docker-compose up
    docker-compose exec -u postgres master psql -c "create database test"
    docker-compose exec -u postgres master psql -d test -c "create table xxx (id serial, v text)"
    docker-compose exec -u postgres master psql -d test -c "insert into xxx (v) select 'this is long line for fill space ' || n from generate_series(1, 5000000) n"
    docker-compose exec -u postgres standby psql -c "checkpoint"
    docker-compose exec -u postgres master psql -d test -c "insert into xxx (v) select 'this is long line for fill space ' || n from generate_series(1, 1000000) n; truncate xxx;"
#    docker-compose exec -u postgres standby ls --full-time /var/lib/postgresql/data/pg_xlog/
#    docker-compose exec -u postgres master psql -d test -c "truncate xxx"
    docker-compose logs standby | grep 'restored log file' | sort | uniq -c | awk '$1 > 1 { print }'
docker-compose down -v

standby_1  | LOG:  restored log file "00000001000000000000003B" from archive
standby_1  | LOG:  restartpoint starting: xlog
standby_1  | LOG:  restored log file "00000001000000000000003C" from archive
standby_1  | LOG:  restored log file "00000001000000000000003D" from archive
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000001000000000000003E_: No such file or directory
standby_1  | LOG:  unexpected pageaddr 0/32000000 in log segment 00000001000000000000003E, offset 0
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000002.history_: No such file or directory
standby_1  | LOG:  restored log file "00000001000000000000003D" from archive
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000001000000000000003E_: No such file or directory
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000002.history_: No such file or directory
standby_1  | LOG:  restored log file "00000001000000000000003D" from archive
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000001000000000000003E_: No such file or directory
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000002.history_: No such file or directory
standby_1  | LOG:  restored log file "00000001000000000000003D" from archive
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000001000000000000003E_: No such file or directory
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000002.history_: No such file or directory
standby_1  | LOG:  restored log file "00000001000000000000003D" from archive
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000001000000000000003E_: No such file or directory
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000002.history_: No such file or directory
standby_1  | LOG:  restored log file "00000001000000000000003D" from archive
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000001000000000000003E_: No such file or directory
standby_1  | cp: cannot stat _/var/lib/postgresql/wals/00000002.history_: No such file or directory

standby_1  | LOG:  unexpected pageaddr 0/15000000 in log segment 000000010000000000000029, offset 0
standby_1  | LOG:  restored log file "000000010000000000000028" from archive
