Re: walprotocol.h vs frontends

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: walprotocol.h vs frontends
Date: 2011-08-15 16:12:36
Message-ID: 4532.1313424756@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> Perhaps we should change the protocol so that it explicitly says which
> file the streamed piece of WAL belongs to. That way a client could write
> it to the correct file without knowing about all those macros.

Yeah, maybe. Otherwise, all that logic is not only implicitly part of
the protocol, but essentially impossible to change because it'll be
hard-coded into clients. I wasn't too worried about this before because
I supposed that only walsender and walreceiver really needed to know
anything about it. If Magnus is busy coding something else that speaks
that protocol, we have a problem. (Assuming we believe his use-case is
sane, that is.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2011-08-15 16:15:35 Re: walprotocol.h vs frontends
Previous Message Heikki Linnakangas 2011-08-15 16:03:30 Re: walprotocol.h vs frontends