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 1qYsdo-0030NV-Gv for pgsql-docs@arkaria.postgresql.org; Wed, 23 Aug 2023 18:31:41 +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 1qYsdl-00FLfA-8c for pgsql-docs@arkaria.postgresql.org; Wed, 23 Aug 2023 18:31:37 +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 1qYsdj-00FLeM-HS for pgsql-docs@lists.postgresql.org; Wed, 23 Aug 2023 18:31:36 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qYsdd-000ZVh-Fd for pgsql-docs@lists.postgresql.org; Wed, 23 Aug 2023 18:31:33 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id D7BEE5C0107; Wed, 23 Aug 2023 14:31:24 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute6.internal (MEProxy); Wed, 23 Aug 2023 14:31:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1692815484; x=1692901884; bh=qd Kyp9KgcZdVrX7yMV2HjeLGk0E6uWHJ5jOnR8Fs8Bk=; b=OkrnE10klmRxcNNxgt oNMTvXTroLan98tVQup91z6lRLijocUgHBT7xPmsBF9yn6vkUYQmssulrIiljTTl P8eqpy/4VgatDAQbK9aBVV/M6G1fKy/tUdIpd32GnrpSbEhceaoPfsYTVfSSMj5f fAStwWQVqjvhWSdAi/c/FZekrs6GgZTOIGiOVdLGLwMhwpHBzDCF9aW03MWgA6zF RSzwa5pUTw4FOhCs2b2qBpyZlCVVYfr8VTrXT0y2R0sjWp/1VXnwyoPieMUL9PZF YvcuMI6PgNB8zlfaWjEqncHjQyUNx0cwHUOTn2dWGDLKpi6n4RUywfLnRGfqBhTR FUCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1692815484; x=1692901884; bh=qdKyp9KgcZdVr X7yMV2HjeLGk0E6uWHJ5jOnR8Fs8Bk=; b=Va4Hmd5qeIZUOYoXYVik/bGO/MXmv ycnUwhuLxGrX6tcxaY3eC/CzVfEuZA0apQlx2/deBex5wzs6LensQaB01EhWyUSI GJvdqQwyIbh6YyQZe5c9krXMuMxjDw7sd1ZQwTAgWFAGoiwizTMQPYG1qJWjyhd3 hFXoUNpxYmB5mjOdB0WWjA0asVh8P9zIyiU8YD1WUclEbYsaDGxpMEyDMWh8tXdq /yogwzmDzZE8teq6UpskRtUvSHy/oveO/nlVwEoK6O7HJonXZ2JMrCUizSrotlMf 9VZzDP5WH6L8Fv1DpYkXNJnDf19izVU0qZBCWIx/WPfs/aHBBwsQ0wJdA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddvgedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrg dtreerreerjeenucfhrhhomhepfdfguhhlvghrucfvrghvvghirhgrfdcuoegvuhhlvghr segvuhhlvghrthhordgtohhmqeenucggtffrrghtthgvrhhnpeeiieehfeefheeuheelle fffefgteejleeiveeikeeikeelffegffeutdeigeeltdenucffohhmrghinhepphhoshht ghhrvghsqhhlrdhorhhgpdgvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvuhhlvghrsegvuhhlvghr thhordgtohhm X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6072315A0092; Wed, 23 Aug 2023 14:31:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-647-g545049cfe6-fm-20230814.001-g545049cf Mime-Version: 1.0 Message-Id: In-Reply-To: <169279891191.621.15758133625753505628@wrigleys.postgresql.org> References: <169279891191.621.15758133625753505628@wrigleys.postgresql.org> Date: Wed, 23 Aug 2023 15:31:04 -0300 From: "Euler Taveira" To: "yanliang lei" , pgsql-docs@lists.postgresql.org Subject: Re: There is no description about "Logical Replication also use or occupy max_wal_senders ", Content-Type: multipart/alternative; boundary=1fa6bbecf7994409a2d3be490c186a2f List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --1fa6bbecf7994409a2d3be490c186a2f Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Aug 23, 2023, at 10:55 AM, PG Doc comments form wrote: > max_wal_senders (integer) >=20 > Specifies the maximum number of concurrent connections from standby se= rvers > or streaming base backup clients (i.e., the maximum number of simultan= eously > running WAL sender processes). The default is 10. The value 0 means > replication is disabled. Abrupt disconnection of a streaming client mi= ght > leave an orphaned connection slot behind until a timeout is reached, s= o this > parameter should be set slightly higher than the maximum number of exp= ected > clients so disconnected clients can immediately reconnect. This parame= ter > can only be set at server start. Also, wal_level must be set to replic= a or > higher to allow connections from standby servers. >=20 > When running a standby server, you must set this parameter to the same= or > higher value than on the primary server. Otherwise, queries will not be > allowed in the standby server. >=20 >=20 >=20 > In the above description=EF=BC=8C there is no description about "Logic= al Replication > also use or occupy max_wal_senders ", According to the glossary [1], standby server (referred as "replica") is Replica (server) A database that is paired with a primary database and is maintaining a c= opy of some or all of the primary database's data. The foremost reasons for doi= ng this are to allow for greater access to that data, and to maintain availabili= ty of the data in the event that the primary becomes unavailable. ... and it implies both (logical and physical) replicas. The logical replication [2] setup also informs that you need to adjust max_wal_sende= rs. Maybe the "standby" terminology could be expanded to avoid confusion for= users from other technologies. If I were to suggest a modification, it would b= e in the first paragraph in the "Replication" section [3] (something like "Pr= imaries can send data, while standbys are always receivers of physically or logi= cally replicated data") or even better rephrase the "Replica (server)" term in= the glossary [1]. > so, I suggest the following modification: > Specifies the maximum number of concurrent connections from standby se= rvers > or streaming base backup clients and Logical Replication (i.e., the > maximum number of simultaneously running WAL sender processes). ---pl= ease > note ,"and Logical Replication" is newly added=E3=80=82 >=20 The logical replication feature wasn't newly added. It was added almost = 6 years ago and version 10 (that adds it) was EOL more than 9 months ago. [1] https://www.postgresql.org/docs/current/glossary.html [2] https://www.postgresql.org/docs/current/logical-replication-config.h= tml [3] https://www.postgresql.org/docs/current/runtime-config-replication.h= tml -- Euler Taveira EDB https://www.enterprisedb.com/ --1fa6bbecf7994409a2d3be490c186a2f Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Wed, Aug 23,= 2023, at 10:55 AM, PG Doc comments form wrote:
max_wal_senders (integer)
=

Specifies the maximum number of concurrent connectio= ns from standby servers
or streaming base backup clients (= i.e., the maximum number of simultaneously
running WAL sen= der processes). The default is 10. The value 0 means
repli= cation is disabled. Abrupt disconnection of a streaming client might
=
leave an orphaned connection slot behind until a timeout is r= eached, so this
parameter should be set slightly higher th= an the maximum number of expected
clients so disconnected = clients can immediately reconnect. This parameter
can only= be set at server start. Also, wal_level must be set to replica or
higher to allow connections from standby servers.

When running a standby server, you must set this paramet= er to the same or
higher value than on the primary server.= Otherwise, queries will not be
allowed in the standby ser= ver.



In the a= bove description=EF=BC=8C there is no description about "Logical Replica= tion
also use or occupy  max_wal_senders ",
=

According to the glossary [1], standby = server (referred as "replica") is

Replica (= server)
A database that is paired with a primary database = and is maintaining a copy of
some or all of the primary da= tabase's data. The foremost reasons for doing this
are to = allow for greater access to that data, and to maintain availability of
the data in the event that the primary becomes unavailable.=

... and it implies both (logical and physi= cal) replicas. The logical
replication [2] setup also info= rms that you need to adjust max_wal_senders.

Maybe the "standby" terminology could be expanded to avoid confusion f= or users
from other technologies. If I were to suggest a m= odification, it would be in
the first paragraph in the "Re= plication" section [3] (something like "Primaries
can send= data, while standbys are always receivers of physically or logically
replicated data") or even better rephrase the "Replica (serv= er)" term in the
glossary [1].

so, I suggest the follo= wing modification:
Specifies the maximum number of concurr= ent connections from standby servers
or streaming base bac= kup clients  and  Logical Replication (i.e., the
maximum number of simultaneously running WAL sender processes).  -= --please
note ,"and  Logical Replication" is newly ad= ded=E3=80=82


Th= e logical replication feature wasn't newly added. It was added almost 6 = years
ago and version 10 (that adds it) was EOL more than = 9 months ago.




<= /div>
--
Euler Taveira

--1fa6bbecf7994409a2d3be490c186a2f--