Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyFT5-0076HG-Ct for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Nov 2023 17:57:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qyFT3-0089Qj-Ro for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Nov 2023 17:57:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyFT3-0089Qb-I9 for pgsql-hackers@lists.postgresql.org; Wed, 01 Nov 2023 17:57:25 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyFT0-003Ttb-Uk for pgsql-hackers@lists.postgresql.org; Wed, 01 Nov 2023 17:57:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=I0COHiIxdLS3ah7L9GxSkhtXtPZwoXtB3gUveGniLeY=; b=e2RA5hZQQ8UUs+6f2Zy9D9WqDb r1CTp3p0SfoYe43s+R7V1MmtcGMfvud/UoAFFPyIflnUOCjaknM04YDaGj0rkfTAqt5CzFAYPRR+s yHVOOo3rBMaTkSS4ZDIjQ4VH/3uTxkTcUwQw/r/BBi/4BaSe1pvKeMOHXUSIuO4AFWgHEnnQn9W8m 66IfvGZcd4l5K6vP9zPC2czKyf1ME4Or484XwNSevpuMaGGVpuiUT4rXFQSvhap+/SBMwgeh9UhXz 7RFRbxDajA/dcZ3mX+UJ1MEavHI9y7J5+QZ52QnNc4C+IJOPKBjR4wDiJjI+werTJrjLmb9keETGF mqd5dWpw==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qyFSw-0096Ky-0D; Wed, 01 Nov 2023 13:57:18 -0400 Date: Wed, 1 Nov 2023 13:57:18 -0400 From: Bruce Momjian To: Li Japin Cc: Fujii Masao , PostgreSQL Developers Subject: Re: Confused about stream replication protocol documentation Message-ID: References: <143A51B2-80B1-4ECD-AF67-F7061377FF63@hotmail.com> <0ACCFDF9-28A3-4527-A254-4751B00556A4@hotmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Patch applied to master, thanks. --------------------------------------------------------------------------- On Thu, Dec 24, 2020 at 02:28:53AM +0000, Li Japin wrote: > > On Dec 23, 2020, at 8:11 PM, Fujii Masao > wrote: > > > On 2020/12/23 11:08, Li Japin wrote: > > On Dec 22, 2020, at 11:13 PM, Fujii Masao < > masao.fujii@oss.nttdata.com > > wrote: > > ‘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 > protocol-message-formats.html> > > Thanks for your clarify. Maybe we should move the "protocol message > formats” > before “stream replication protocol” or referenced it in "stream > replication protocol”. > > > I like the latter. And maybe it's better to reference to also > "53.6. Message Data Types" there because the messages for > START_REPLICATION use the message data types. > > > Add reference about “protocol message types” and “protocol message formats”. > > index 4899bacda7..5793936b42 100644 > --- a/doc/src/sgml/protocol.sgml > +++ b/doc/src/sgml/protocol.sgml > @@ -2069,8 +2069,9 @@ The commands accepted in replication mode are: > > > > - WAL data is sent as a series of CopyData messages. (This allows > - other information to be intermixed; in particular the server can send > + WAL data is sent as a series of CopyData messages > + (See and "protocol-message-formats"/>). > + (This allows other information to be intermixed; in particular the > server can send > an ErrorResponse message if it encounters a failure after beginning > to stream.) The payload of each CopyData message from server to the > client contains a message of one of the following formats: > > -- > Best regards > Japin Li > > diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml > index 4899bacda7..5793936b42 100644 > --- a/doc/src/sgml/protocol.sgml > +++ b/doc/src/sgml/protocol.sgml > @@ -2069,8 +2069,9 @@ The commands accepted in replication mode are: > > > > - WAL data is sent as a series of CopyData messages. (This allows > - other information to be intermixed; in particular the server can send > + WAL data is sent as a series of CopyData messages > + (See and ). > + (This allows other information to be intermixed; in particular the server can send > an ErrorResponse message if it encounters a failure after beginning > to stream.) The payload of each CopyData message from server to the > client contains a message of one of the following formats: -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.