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 1qdtc4-0056ad-RG for pgsql-docs@arkaria.postgresql.org; Wed, 06 Sep 2023 14:34:36 +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 1qdtc3-00Aywq-6p for pgsql-docs@arkaria.postgresql.org; Wed, 06 Sep 2023 14:34:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdtc2-00Aywc-Pp for pgsql-docs@lists.postgresql.org; Wed, 06 Sep 2023 14:34:34 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdtby-003QqL-2E for pgsql-docs@lists.postgresql.org; Wed, 06 Sep 2023 14:34:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=yqvuZrcDqmdsPQVwtPwatmojjSqqJZe+Jh8fjBdF8f4=; b=go9x/ AaR0z/mYWJxqK2vxDGEv6+/dvTP7FHVnknZRidbKzPE0DV05ANJSgOiitR8kW1CyKaSEXVKG9pOdy ztJ4jc9wu+6A/9mQlLrKYgvn2NZ/a/3b8EuqC9CMKpMW7HBZDRYZeP7KYd5ESMOYLyK/NBrKWyMC5 7f0v75fAU1zzwP4GOYQTkRgCeNw7XdTWJjW6YGOPeggBPa8w9/BLlYnBI9pTMvXSrYGapmVXSQBQF ima34D1nNKQ0lpRPot3ad+IofAntChvEnZ3sSuB6vrSKa3dxM6NHYqMbHjMLPoOXEGfKyTC1QWGj2 X+RmT/YgxmRVr4QQ4PdCfGwCG/10w==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qdtbs-001Jhd-25; Wed, 06 Sep 2023 10:34:24 -0400 Date: Wed, 6 Sep 2023 10:34:24 -0400 From: Bruce Momjian To: Peter Eisentraut Cc: Euler Taveira , yanliang lei , pgsql-docs@lists.postgresql.org Subject: Re: Replica vs standby Message-ID: References: <169279891191.621.15758133625753505628@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Sep 6, 2023 at 09:02:02AM +0200, Peter Eisentraut wrote: > On 06.09.23 03:42, Bruce Momjian wrote: > > There are other cases in our docs where we call something a standby and > > mean only a physical standby/replica. Should these be clarified? > > When "hot standby" was added, I argued that it's not really a standby if > it's hot. The response was that this is sort of a standard industry term, > and we should read "standby" to be equivalent to "replica". Which I think > is good enough. Obviously, the term "standby" is baked into many > user-visible interfaces, so it's not clear whether there is a clean path to > improving anything here. If we don't want to change the standby == replica assumption, we still need improvement. How do we describe physical replicas in the docs? https://www.postgresql.org/docs/devel/runtime-config-wal.html#RUNTIME-CONFIG-WAL-SETTINGS wal_level (enum) wal_level determines how much information is written to the WAL. The default value is replica, which writes enough data to support WAL archiving and replication, including running read-only queries on a standby server. -------------- That is clearly not a logical standby/replica. If a server subscribes to one table via logical replication, is it a replica/standby server? https://www.postgresql.org/docs/devel/runtime-config-replication.html#RUNTIME-CONFIG-REPLICATION-SENDER max_wal_senders (integer) Specifies the maximum number of concurrent connections from standby ------- servers or streaming base backup clients (i.e., the maximum number of ------- simultaneously running WAL sender processes). The email that started this thread was caused by confusion that logical subscribers are part of the max_wal_senders allocation. While logical replication _can_ be used for standby purposes, it has many other uses. For physical replication, a hot standby can still be used for standby purposes, while for logical replication, most of its uses cannot be used for standby purposes. My initial recommendation is that we keep "standby" for physical replicas, hot and warm, and we use "replica" for physical and logical replication receivers. In this case, replica == "receiver of replication". I am ready to prepare a patch to clarify all this once we decide what is appropriate. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.