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 1pmewA-0000Zh-Il for pgsql-committers@arkaria.postgresql.org; Wed, 12 Apr 2023 18:11:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pmew9-00014k-FM for pgsql-committers@arkaria.postgresql.org; Wed, 12 Apr 2023 18:11:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmev0-0008Bb-PR for pgsql-committers@lists.postgresql.org; Wed, 12 Apr 2023 18:10:06 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmeux-0003Le-1J for pgsql-committers@lists.postgresql.org; Wed, 12 Apr 2023 18:10:05 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6A1845C0132; Wed, 12 Apr 2023 14:10:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 12 Apr 2023 14:10:02 -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=1681323002; x=1681409402; bh=Iy RYKnBClwPZPVtCuCR2FRPx/q8xEYCrRfUrbZv7IP4=; b=BJYeDC8lRiVAlfhfmd P3g0M/Kz0phCMlqAA7qd+VVc+SnuKXMxEM/Q0TIbTj2TrT5wMpyWE8zoIMb81Rai ie8o4hPIbuYXAzoF/5j3+kMkuD88NAwJyiebnu+iqIR38tzBgblB3mH/iJE5S9vf OZFuW66uz19m8vJBmYOT9rKrINCisrFwGyXkCHYHIxCmvolg9J7KJG+6qJ2zblvH OKVt5EytKxNSiidILvPrI4M7ik+6Qe2cfDyLcQ4LGxcBRbs3WCEe1XVXIaqGPSxK slDip0fRUn5BTj1scMXgHij/CLj0DjIF16BJaFOT//WMtqDJEYTZjTOSZZMjPNm/ VcQw== 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=1681323002; x=1681409402; bh=IyRYKnBClwPZP VtCuCR2FRPx/q8xEYCrRfUrbZv7IP4=; b=fT176lrgrAasqyBt+GxyV+NviGSHj eDlYxf8ddy9T6/lokZhlCRiajWlEljC5CBbehqy7z+o7yI7Z1Fk8G3ia1yYbBP8r 96gOmerxtgapl1aeUhESWKldcnRZ0TdUdOwYq5c6GQO9BcrckEkr5YUa0UiZI5O0 q+EpBm1zQMqtq+W0NhwN+UoxLaOGIwSq4OJc62RU2mVBTiA+5Z1CmrEFtY6F/3eU fCLWCEj1VE0eAPYeSVSvFAbCJP9OSImMg6yd1SAmrTOuQNdwF5aHJdfomC3jtNz+ Pa7emIO6A2uOdoYlERbC5o/R2cFIrfZmVQKsfXCV92WdSMq4fZ2waGPMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekiedguddvfecutefuodetggdotefrod 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 14:10:02 -0400 (EDT) Date: Wed, 12 Apr 2023 11:10:00 -0700 From: Andres Freund To: Kyotaro Horiguchi Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Allow logical decoding on standbys Message-ID: <20230412181000.sk67iouifwhnhhkh@awork3.anarazel.de> References: <20230411.120253.579856734111967616.horikyota.ntt@gmail.com> <20230412174244.6njadz4uoiez3l74@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230412174244.6njadz4uoiez3l74@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-04-12 10:42:44 -0700, Andres Freund wrote: > 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. If we do that, we should adjust the errdetail() that you (correctly!) pointed out as needing punctuation as well. Pushed those improvements together. Greetings, Andres Freund