From: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Streaming replication and message type header |
Date: | 2010-02-03 09:47:39 |
Message-ID: | 4B69463B.7060509@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Fujii Masao wrote:
> On Tue, Jan 19, 2010 at 12:20 AM, Heikki Linnakangas
> <heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
>> Tom Lane wrote:
>>> Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
>>>> Simon Riggs wrote:
>>>>> Do we need a new record type for that, is there a handy record type to
>>>>> bounce from?
>>>> After starting streaming, slices of WAL are sent as CopyData messages.
>>>> The CopyData payload begins with an XLogRecPtr, followed by the WAL
>>>> data. That payload format needs to be extended with a 'message type'
>>>> field and a new message type for the timestamps need to be added.
>>> Whether or not anyone bothers with the timestamp message, I think adding
>>> a message type header is a Must Fix item. A protocol with no provision
>>> for extension is certainly going to bite us in the rear before long.
>> Agreed a message type header is a good idea, although we don't expect
>> streaming replication and the protocol to work across different major
>> versions anyway.
>
> The attached patch adds a message type header into the payload in
> CopyData message sent from walsender to walreceiver, to make the
> replication protocol more extensible.
Ok, commmitted.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2010-02-03 09:52:11 | Re: Hot Standby: Relation-specific deferred conflict resolution |
Previous Message | Rafael Martinez | 2010-02-03 09:46:13 | Re: PITR - Bug or feature? |