Fix pg_basebackup for keepalive messages

Magnus Hagander <magnus@hagander.net>

Commit: 6b020d228b976821181ac673964f302b2c32f12d
Author: Magnus Hagander <magnus@hagander.net>
Date: 2012-01-09T17:07:19Z
Releases: 9.2.0
Fix pg_basebackup for keepalive messages

Teach pg_basebackup in streaming mode to deal with keepalive messages.
Also change the order of checks to complain at the message rather than
block size when a new message is introduced.

In passing, switch to using sizeof() instead of hardcoded sizes for
WAL protocol structs.

Files

PathChange+/−
src/bin/pg_basebackup/receivelog.c modified +23 −7