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 1t7xvf-001GwW-Uo for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Nov 2024 14:19:39 +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 1t7xvb-001kWR-Mk for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Nov 2024 14:19:36 +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 1t7xva-001kWI-Rz for pgsql-hackers@lists.postgresql.org; Mon, 04 Nov 2024 14:19:35 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t7xvY-0008kq-FI for pgsql-hackers@postgresql.org; Mon, 04 Nov 2024 14:19:34 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 1C5831380434; Mon, 4 Nov 2024 09:19:31 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 04 Nov 2024 09:19:31 -0500 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1730729971; x=1730816371; bh=g IbWvkFWuDSC4vqTaeVCmthloyToH9K6KnQfnDfJjag=; b=Fgr5w7ePT6+rbNEuY xzYp/ufjLTjVwOvzDqEv0ZQmnuwSheSMBFDY7Ojp02V7WrZ+s09FUVtrVWBdjPN9 HHTwPpHOnGOp701Y8zmbibUmkrW3QC20R2usoDXg+qPwuQEVqP0UsJ/1GNpmsKNq aEAq7yLoRAWP9a89Cppp7aFSki9xp7Xgv+pH0Vdt71HGCmy+DPkReXszfnEWYHQ0 0v9bkByvz7JNk3MuQhaq/Og+TavFzMnex1bo9Krxs4vKnLy7F5Y5gcQeonvJHDcc i3IiorW+ecrjf/A49SNV0R5tYF2qAkC71lS2uHkgINjV3sT1NSMTLmxsSIvcdEIJ 5t4gQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeliedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeen ucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhh drnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffh jeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprh gtphhtthhopeeipdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehpvghtvghrsegv ihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopegrvghkohhrohhtkhhovhesghhmrg hilhdrtghomhdprhgtphhtthhopehprghshhhkihhnrdgvlhhfvgesghhmrghilhdrtgho mhdprhgtphhtthhopehhlhhinhhnrghkrgesihhkihdrfhhipdhrtghpthhtohepmhhitg hhrggvlhesphgrqhhuihgvrhdrgiihiidprhgtphhtthhopehpghhsqhhlqdhhrggtkhgv rhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Nov 2024 09:19:30 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1730729966; bh=hfEUhDnQk17O5K/4HrhunQ8NuKixtnq36ldfUdXUvdE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=PC82r1YQKYxhumejf1JLXIbW7hn/CGgTWVskGFPtxDz5EE9CQF2bTjbVqOFGHWz3U cVjelFi3k+AcN7LhtdEw7bdl6v8MgASkXlSSFtEOH+1eRbAXHGDypQOxbrKaT2XYRu BJWHmRMmnFVjpsrAaWW1HKno1Nham7nVcLSzk9qnW2ZfRvdnYkMh6qkNoQAMAZeTHi 2UrfSbBsdsneEOtAQRduywY5bsZH8MQXxDTg6gQZVZyLG8Sfj+GBZrj9n54/3y/AM4 dHa2hwef9SGyHaU4GW5d00TTkBqPCVRpOtib3BHcS1L1/V8O5jjrYuj+HRDQFz5Auh EPsBLz6euporw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 6DF9F9E; Mon, 4 Nov 2024 15:19:26 +0100 (CET) Date: Mon, 4 Nov 2024 15:19:26 +0100 From: Alvaro Herrera To: Alexander Korotkov Cc: Michael Paquier , Heikki Linnakangas , Pavel Borisov , Peter Eisentraut , pgsql-hackers Subject: Re: pgsql: Implement pg_wal_replay_wait() stored procedure Message-ID: <202411041419.qif3lqaisktw@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Nov-04, Alexander Korotkov wrote: > On Mon, Nov 4, 2024 at 8:04 AM Michael Paquier wrote: > > Using output parameters in a procedure is something I did not recall. > > Based on your point about not using a function due your argument based > > on the snapshots, let's just use that and forget about the status > > function entirely (please?). > > Please, check [1]. Usage of output parameters is a bit awkward too, > because you need to pass some value in there. And more importantly, > usage of output parameters also causes snapshot problem, as it causes > another snapshot to be held. I wonder if it would be better to go back to the original idea of using special DDL syntax rather than a procedure. It seems we've been piling up hacks to get around the behavior of procedures, and we seem to have grown one more to handle repeatable read transactions. It's looking to me like there's just too much cruft in the quest to avoid having to reach consensus on new syntax. This might be a mistake. Is it possible to backtrack on that decision? -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Linux transformó mi computadora, de una `máquina para hacer cosas', en un aparato realmente entretenido, sobre el cual cada día aprendo algo nuevo" (Jaime Salinas)