streaming header too small - Mailing list pgsql-hackers

From Jaime Casanova
Subject streaming header too small
Date
Msg-id CAJKUy5hLChrLCGN2SrRuEFqXVTyRE3LyiqjRpsEq4e8YN99d9g@mail.gmail.com
Whole thread Raw
Responses Re: streaming header too small  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Hi,

I was trying pg_basebackup on head, i used this command:
"""
postgres@jaime:/usr/local/pgsql/9.2$ bin/pg_basebackup -D $PWD/data2
-x stream -P -p 54392
"""

i got this error
"""
19093/19093 kB (100%), 1/1 tablespace
pg_basebackup: streaming header too small: 17
pg_basebackup: child process exited with error 1
"""

now, this streaming header size is defined in
src/bin/pg_basebackup/receivelog.c as "#define STREAMING_HEADER_SIZE
(1+8+8+8)", so WTF is this?
what are these numbers? shouldn't be at least a comment explaining
those? more important it's seems obvious something broke that, unless
i misunderstood something which is completely possible, and that the
way is do it it will broke again in the future if the header change

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: SFPUG reviewfest for 2012-01-12
Next
From: Heikki Linnakangas
Date:
Subject: Re: [PATCH] Allow breaking out of hung connection attempts