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.96) (envelope-from ) id 1vhs5a-008KsE-2J for pgsql-committers@arkaria.postgresql.org; Mon, 19 Jan 2026 16:26:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vhs5Z-00DpYS-1t for pgsql-committers@arkaria.postgresql.org; Mon, 19 Jan 2026 16:26:49 +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.96) (envelope-from ) id 1vhs5Z-00DpYK-1A for pgsql-committers@lists.postgresql.org; Mon, 19 Jan 2026 16:26:49 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vhs5X-001Mdd-0s for pgsql-committers@lists.postgresql.org; Mon, 19 Jan 2026 16:26:49 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 6EEF81D00063; Mon, 19 Jan 2026 11:26:45 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Mon, 19 Jan 2026 11:26:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1768840005; x=1768926405; bh=gmfuIOpW1CLI/yAvTwmBd6o84isQRo66Y7YnuSIxyCA=; b= Bl3b+WIXUg3dXQ5OIJum9WJOMOt4henixYWCe0vstM1TiwnpjnBi2t2Q7vaycOWq /I5xUqzt/2kvlSc1sANv8EprEx/hHqiZlVuqg+wAHsLaWt4dO+NLR/zhB2+27aw2 skuHSmtLbJ1dotPCrU31dW1VGcEU1ZeyDTkqCeH2GRUABjnxQC30zrmR0RzOA62o JB5+5UO61QC0+D3ZGE6XdroKQtFBA2b/hlFpkFaivV38bGJOQmvLLKwyUatHkTFn ja/JKdNBw0IObfH3YPvh0o87llQZef5AuPgX/XwFwK+Grl3UE6igYIwd6lvDRuVN FldZ+Rrh/WjPGttLEjrDlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1768840005; x=1768926405; bh=g mfuIOpW1CLI/yAvTwmBd6o84isQRo66Y7YnuSIxyCA=; b=bDfy7GEAqzc5nmZMg 1RqgXlnXs4Jwr/eHzX72rtixxlo03Ae0Y72LC46Yke+iouJ2gHq9M5Puk15MmRRH t+92iNXLHuc+qm+Qq+8tWBAs0sNmplWced/ZfynolduGk/PsJEydUh2D4he/4rkB 1+JPV564ntDQyTjEPVVU4O+uhg26KHFF+PVvwDVK2oxJx1oKFFVvg+qMvPbjR5cg CFjE6s50M4gGQwZqrL4If6a5SlMV00ISb3V0R5wHj2uvMm9ZasIA0XqEAfVIoP+S htrQOMUQUoIXMmnTf8OjOFBkqCZDDhvzliu0f1t8UdPcRknUS/107T+qA4f/JqZ8 lw2rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddufeektdefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeegueeuvdfhheeuieejtefguddthfevveefuefgtddvgfetteeh jeetleeuvdevudenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghi shgvnhhtrhgruhhtrdhorhhgpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegrkhhorhhothhkohhvsehpohhsthhgrhgvshhqlhdrohhrghdp rhgtphhtthhopehpghhsqhhlqdgtohhmmhhithhtvghrsheslhhishhtshdrphhoshhtgh hrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 19 Jan 2026 11:26:43 -0500 (EST) Message-ID: <8d72a2b3-7423-4a15-a981-e130bf60b1a6@eisentraut.org> Date: Mon, 19 Jan 2026 17:26:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Add the MODE option to the WAIT FOR LSN command To: Alexander Korotkov , pgsql-committers@lists.postgresql.org References: Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 05.01.26 18:56, Alexander Korotkov wrote: > Add the MODE option to the WAIT FOR LSN command > Details > ------- > https://git.postgresql.org/pg/commitdiff/49a181b5d634340fcfb7c762c387c03f6405367e > > Modified Files > -------------- > doc/src/sgml/ref/wait_for.sgml | 213 +++++++++++++---- > src/backend/access/transam/xlog.c | 22 +- > src/backend/commands/wait.c | 174 ++++++++++++-- > src/backend/replication/walreceiver.c | 18 ++ > src/test/recovery/t/049_wait_for_lsn.pl | 411 +++++++++++++++++++++++++++++--- > 5 files changed, 741 insertions(+), 97 deletions(-) This patch adds several instances in src/backend/commands/wait.c where an elog(ERROR) is followed immediately by pg_unreachable(). I think this is redundant. I think this pattern has been used historically in functions that return non-void where the elog(ERROR) is the last call, to avoid warnings about a missing return. But in this case, the function returns void. Check please if this is really necessary or just copy-and-pasted.