Skip to content

Commit

Permalink
Remove xlog segments created by pg_receivexlog. (#165)
Browse files Browse the repository at this point in the history
Avoid leaving them around once the replica has started streaming.
  • Loading branch information
Oleksii Kliukin authored and CyberDem0n committed May 17, 2017
1 parent 6034bf9 commit ce4091a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postgres-appliance/basebackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ function receivexlog() {
kill -0 $receivexlog_pid && sleep 1 || exit
done

kill $receivexlog_pid
kill $receivexlog_pid && sleep 1
rm -f ${XLOG_FAST}/*
}

ATTEMPT=0
Expand Down

0 comments on commit ce4091a

Please sign in to comment.