Skip site navigation (1) Skip section navigation (2)

pgsql: Fix pg_basebackup for keepalive messages

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix pg_basebackup for keepalive messages
Date: 2012-01-09 17:10:33
Message-ID: E1RkIjx-0007Hn-Nh@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6b020d228b976821181ac673964f302b2c32f12d

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c |   30 +++++++++++++++++++++++-------
1 files changed, 23 insertions(+), 7 deletions(-)

pgsql-committers by date

Next:From: Peter GeogheganDate: 2012-01-09 17:13:51
Subject: Re: pgsql: plpython: Add SPI cursor support
Previous:From: Dave PageDate: 2012-01-09 17:06:54
Subject: Re: pgsql: plpython: Add SPI cursor support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group