]> granicus.if.org Git - postgresql/commit
Fix pg_basebackup for keepalive messages
authorMagnus Hagander <magnus@hagander.net>
Mon, 9 Jan 2012 10:53:38 +0000 (11:53 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 9 Jan 2012 17:07:19 +0000 (18:07 +0100)
commit6b020d228b976821181ac673964f302b2c32f12d
tree566ae4191afad7ed13599d9ea7170d6fa0fa0a0c
parentdb49517c62750322fb2a37ff6324ecc00965e641
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.
src/bin/pg_basebackup/receivelog.c