On 10 March 2016 at 13:13, Nick Cleaton <nick@cleaton.net> wrote:
> ... and everything following that is a storm of:
>
> Packet: t=1457611872.761098, session=17578864249730
> PGSQL: type=PrimaryKeepalive, B -> F
> PRIMARY KEEP-ALIVE
>
> Packet: t=1457611872.761221, session=17578864249730
> PGSQL: type=StandbyStatusUpdate, F -> B
> STANDBY STATUS UPDATE
>
> Packet: t=1457611872.761363, session=17578864249730
> PGSQL: type=PrimaryKeepalive, B -> F
> PRIMARY KEEP-ALIVE
This patch is enough to eliminate the problem on my hardware; in this
test the server sent only 29 keepalives during the shutdown:
http://nick.cleaton.net/protodump-100k-nossl-patched.xz (47k)