Re: Confused about stream replication protocol documentation

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Li Japin <japinli(at)hotmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Confused about stream replication protocol documentation
Date: 2020-12-22 15:13:01
Message-ID: a60d7cd0-6df9-bd7b-e44d-fe922728c66b@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2020/12/22 18:07, Li Japin wrote:
> Hi, all
>
> In Stream Replication Protocol [1], the documentation of `START_REPLICATION` message is
>
> XLogData (B)
>   …
> Primary keepalive message (B)
>   …
> Standby status update (F)
>   …
> Hot Standby feedback message (F)
>   ...
>
> I’m confused about the means of ‘B’ and ‘F’? If it doesn't make sense, why we document here?
> However, if it makes sense, should we explain it?
> Can someone help me out?

‘B’ means a backend and ‘F’ means a frontend. Maybe as [1] does, we should
add the note like "Each is marked to indicate that it can be sent by
a frontend (F) and a backend (B)" into the description about each message
format for START_REPLICATION.

[1]
https://www.postgresql.org/docs/devel/protocol-message-formats.html

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2020-12-22 15:38:30 Re: [PATCH] Automatic HASH and LIST partition creation
Previous Message Pavel Borisov 2020-12-22 15:03:05 Re: [PATCH] Automatic HASH and LIST partition creation