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 1t19oe-00EySu-A9 for pgsql-committers@arkaria.postgresql.org; Wed, 16 Oct 2024 19:36:16 +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 1t19ne-009138-86 for pgsql-committers@arkaria.postgresql.org; Wed, 16 Oct 2024 19:35:14 +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 1t19nd-0090od-E5 for pgsql-committers@lists.postgresql.org; Wed, 16 Oct 2024 19:35:14 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t19nZ-001EbV-SQ for pgsql-committers@lists.postgresql.org; Wed, 16 Oct 2024 19:35:12 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 08F1E13801A0; Wed, 16 Oct 2024 15:35:09 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Wed, 16 Oct 2024 15:35:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc: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=1729107309; x=1729193709; bh=mP9wEURZFOcz+5H7492pQJrR57kiCHsW TBSNy3ND3qY=; b=kl/gwTPAli3Suhv3VhAPzEt/BnYWGhbVII6yk2G1Om8BYHuO 7bFmdH14DAL1hSGKvaI465B9jUlOHiplry5+9p0I+fgpzdQWdR5zq1ONjNay73LR QL2S4lIe4OAI5L1VkZjxOAYX9kr66vq92n2wWCqQDnUzOmqA9mX775P0wTJwrBB4 mc3/3AV0d/oEvOtrCCT8WtfHtzoH4iDh7YVtX2yi7K4Yh3RbsqQInI9Da+18vnRv ZbjG/8a7smtoJHmvFtEYb0CJBTGO/fwSvV7o0T2bnpLuFxxY/pyfbNL9eaek6A/K WwwmtBwLXQk/tB+mcTF/YqxkDFAVV//aJbAB4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1729107309; x= 1729193709; bh=mP9wEURZFOcz+5H7492pQJrR57kiCHsWTBSNy3ND3qY=; b=P YDbgHY5bdiyd7fg3VeZf4B9QQCaIsLVWfRJVr4RuVfl1eegSBeE9S1F2KjYszxpl zXkbaUgOfCk9fQnR86bFaRq6rapz5wCZmQImsKgnnxE4YBVet4SXUIcC3OocrEer k7bmYqN4nyd/SxFa563A58lFKyz3qXDlNYelK2iYMaR9tzeyztwqLThd0q2zdiAE rf96DdNKlZUG+8XPXcPxTtZOgFn51lPUb3N0yVUnLXcSTm+zr1slV7NVK3/5SQdL gfupN9s4UPebsp+XSOuu06qzJPaHN8FC3wasy5kK+gw25zzfBsXo8efm5ZEi8V7g ymwOtxmUEU9nC7UpT/1Cg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdegledgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddv jeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghish gvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpeejhfevhedttefgfffhhfef fefggffhffelgfeiueeukeehvdehvdefheffvdefueenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdr ohhrghdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh eprggvkhhorhhothhkohhvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidprhgtphhtthhopehpghhsqhhlqdgtohhmmhhithhtvg hrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 16 Oct 2024 15:35:07 -0400 (EDT) Message-ID: <1f5b399a-76b1-48e1-87b0-f511e61818f3@eisentraut.org> Date: Wed, 16 Oct 2024 21:35:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Implement pg_wal_replay_wait() stored procedure To: Alexander Korotkov , Michael Paquier Cc: pgsql-committers@lists.postgresql.org References: <18c0fa64-0475-415e-a1bd-665d922c5201@eisentraut.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 02.09.24 01:55, Alexander Korotkov wrote: > On Mon, Sep 2, 2024 at 2:28 AM Michael Paquier wrote: >> On Sun, Sep 01, 2024 at 10:35:27PM +0300, Alexander Korotkov wrote: >>> This path hasn't changes since the patch revision when it was a >>> utility command. I agree that this doesn't look like proper path for >>> stored procedure. But I don't think src/backend/utils/adt is >>> appropriate path either, because it's not really about data type. >>> pg_wal_replay_wait() looks a good neighbor for >>> pg_wal_replay_pause()/pg_wal_replay_resume() and other WAL-related >>> functions. So, what about moving it to src/backend/access/transam? >> >> Moving the new function to xlogfuncs.c while publishing >> WaitForLSNReplay() makes sense to me. > > Thank you for proposal. I like this. > > Could you, please, check the attached patch? We still have stuff in src/backend/commands/waitlsn.c that is nothing like a "command". You have moved some stuff elsewhere, but what are you planning to do with the rest?