Re: Updated version of pg_receivexlog

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, Fujii Masao <masao.fujii@gmail.com>, Jaime Casanova <jaime@2ndquadrant.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2011-10-27T14:54:00Z
Lists: pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> On Thu, Oct 27, 2011 at 13:19, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com> wrote:
>> On 27.10.2011 14:09, Fujii Masao wrote:
>>> Yes. But that sounds unuserfriendly. Padding the WAL file manually
>>> is easy-to-do for a user?

> I'd definitely want to avoid anything that requires pg_receivexlog to
> actually *parse* the WAL. That'll make it way more complex than I'd
> like.

What parsing?  Just pad to 16MB with zeroes.  In fact, I think the
receiver should just create the file that size to start with, and then
write received data into it, much like normal WAL creation does.

			regards, tom lane