pg_rewind
a PostgreSQL server
RUN apt-get update && \
apt-get install -y postgresql-9.6
RUN apt-get update && \
apt-get install -y postgresql-10
RUN pacman -S --noconfirm postgresql-old-upgrade
RUN apt-get update && \
apt-get install -y postgresql-11
RUN yum install -y postgresql-upgrade
RUN dnf install -y postgresql-upgrade
RUN apt-get update && \
apt-get install -y postgresql-9.5