Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmeUn-0007Yl-D3 for pgsql-committers@arkaria.postgresql.org; Wed, 12 Apr 2023 17:43:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pmeUl-0008Ik-UP for pgsql-committers@arkaria.postgresql.org; Wed, 12 Apr 2023 17:42:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmeUk-0008IV-9s for pgsql-committers@lists.postgresql.org; Wed, 12 Apr 2023 17:42:59 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pmeUd-002Tvv-Rf for pgsql-committers@lists.postgresql.org; Wed, 12 Apr 2023 17:42:57 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9890A320098F; Wed, 12 Apr 2023 13:42:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 12 Apr 2023 13:42:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc: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=fm3; t=1681321366; x=1681407766; bh=Ko zHdp7xynPnkP/GQ5Drgdn81jy1oqWcG1STbQw8wfI=; b=RK3gbh1zIYYhmtOUHc CWwFgX49OlPD/rgqXysFwjKikaBfszLU8sKqEE/bTU3BLPMTqLGK4iw5ADf0CxQ6 eE6LixiD7wt6k4kEpKgee9fVt7WSF9BNU18EQwpDwXlQ35vr2xAL5CNN5zCAJYC7 bme+yIjwzztTiFGPPbl7ujOHZrseSI52HPv427JriglszX9XrSuhSFSneR8rnqsC Gsf3Stztt6lG9kuEx9hgdTv4MOnyrG2LOR6I6ANNPxlFyNt55t4WnuwV8WErHowf Ds59iuPXYC3BHvlORpXBlp9U7JjlmHdWXeuFUa2NKfzE39e4++VV0hHF5E2uvFqL yDZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; t=1681321366; x=1681407766; bh=KozHdp7xynPnk P/GQ5Drgdn81jy1oqWcG1STbQw8wfI=; b=CvDDKPc5i4KngcAQPmzxbt2rS4sjv cVa1+26gchDSlQesv5olLH+7FjXP/+cz66C0q7OaE6Qrf3AMtLnO8osgPMtovo3f q/MeTpbaCAXct9/C7ww8mP5RfjEWdZxMm2QJTwlA7gvh+xJrRJnVOL34rnrti1GF NRJLuCS1wDyRNKjzUY7L9YFTc/X2NZ7W+NLpqYrOzZ05AYczRuqcUgks55pKOdTU CAGXSqbC5nEfJw4m1daQkF87YV/QNN47oDhppgTCOjaVV/dg6fHZM4bAm8DarJ5S vaRgGNm2fgZF+D+oW0TRIuWCHjBOzBsQ9iTL1LkCLGhTrHahmomhWSuMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekiedguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkfhggtggujgesth dtredttddtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshes rghnrghrrgiivghlrdguvgeqnecuggftrfgrthhtvghrnhepvdfffeevhfetveffgeeite efhfdtvdffjeevhfeuteegleduheetveduieettddunecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdrug gv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Apr 2023 13:42:45 -0400 (EDT) Date: Wed, 12 Apr 2023 10:42:44 -0700 From: Andres Freund To: Kyotaro Horiguchi Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Allow logical decoding on standbys Message-ID: <20230412174244.6njadz4uoiez3l74@awork3.anarazel.de> References: <20230411.120253.579856734111967616.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230411.120253.579856734111967616.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-04-11 12:02:53 +0900, Kyotaro Horiguchi wrote: > > Allow logical decoding on standbys > > This adds the following error message. > > + errmsg("logical decoding on a standby requires wal_level to be at least logical on the primary"))); > > We alredy have a nearly identical message as follows. > > > errmsg("logical decoding requires wal_level >= logical"))); > > And we used to writte this kind of conditions, like "wal_level >= > logical", using a mathematical operator. Don't we need to unify them? I guess. It doesn't seem particularly important, but why not. > And, a nearby commit addds the following message. > > + appendStringInfo(&err_detail, _("Logical decoding on standby requires wal_level to be at least logical on the primary server")); > > This is omitting the indefinite article before "standby". I'm not sure > what to do about it but feel like we don't need it here. I don't think we need it either, but I'm not a native speaker. Greetings, Andres Freund