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 1vJmvZ-002d5d-2F for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Nov 2025 06:04:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJmvX-004b5V-0E for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Nov 2025 06:04:55 +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.96) (envelope-from ) id 1vJmvW-004b5M-0T for pgsql-hackers@lists.postgresql.org; Fri, 14 Nov 2025 06:04:54 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vJmvU-007335-13 for pgsql-hackers@lists.postgresql.org; Fri, 14 Nov 2025 06:04:53 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 376ED14001F3; Fri, 14 Nov 2025 01:04:51 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Fri, 14 Nov 2025 01:04:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm3; t=1763100291; x=1763186691; bh=2foXj+/p3T nIzkdARYQm0Iy1vr0qqkF7QdPCeub9aGQ=; b=YE8SOFkDDZtlzpT0iCRFTckt87 4BI09ihCGb5364f0DTC0j2qDFwGHn1OKQrjtjl6VEc5YQS1gMbXd3kKyeBbohuvx 4dm1MEUurn9q5L5CSX8a5aqet0vNWPwS5whJluCWUmDAENb+dKbciN1dIHwhZVlv LYgBptq3XVt6hi4mNhmiA6UlFU7UbkTn1X7RkjoZMizBIISV9xwgUO6ca3vOmQ8M DWu26O5XxtlJquUDMp00kmXZ8CFrtoUnl1NAyOtw4p8UAWd1Zy5xtHjUqBWOxpwU vgtzYS5xVat/i4Qfl7ymz+14UGhTotvgMxlyIcSst8SeRCO3moKrHD3ZLF0A== 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:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1763100291; x=1763186691; bh=2foXj+/p3TnIzkdARYQm0Iy1vr0qqkF7QdP Ceub9aGQ=; b=bkCWDu2Y0pvmdYqCvCwoBJTYJqzm0888WnUua0hICO/5ZPoZ5wz Uo2lwqDS/CTP8NJ7KN2vbDAT7Mz60Nzu4WzvQpEKPJZgzZ0rItcO3IT4zsaIkdnI EQHHT2ZkiXVupmCEX9/9TYaiBMoO89waOu1dVdBDuw/cOGQVSuaj6jxEwRzazUgj rNkdtT19T5w2Eh3nM+eFS8MCObNA/B5Kv0TY2l0GORpe5JaItz7VKC0nXjTHuEhm M8/ujZ215lMFmbljGrZzLSeoPdm+TCwv+PXjd9Z7zJ+icL6ChR1YebNzBV4J1+Hz gufnsJAP9djk/MBkcKsGdVnV9CG+vW0/x+w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdeltdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtdorredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepffduleehgefhkeefgfeftdfhkedu tddvhfdukeeggeehieekffelhfelkeehteefnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepshgrmh himhhsvghihhesghhmrghilhdrtghomhdprhgtphhtthhopegtrggurghrihhurdhmihhr tggvrgesghhmrghilhdrtghomhdprhgtphhtthhopehrohgsvghrthhmhhgrrghssehgmh grihhlrdgtohhmpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhushdprhgt phhtthhopehfrhgvuggvrhhitgdrhihhuhgvlhesuggrlhhisghordgtohhmpdhrtghpth htohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdho rhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Nov 2025 01:04:48 -0500 (EST) Date: Fri, 14 Nov 2025 15:04:25 +0900 From: Michael Paquier To: Sami Imseih Cc: Mircea Cadariu , Robert Haas , Tom Lane , =?iso-8859-1?Q?Fr=E9d=E9ric?= Yhuel , PostgreSQL Hackers Subject: Re: pgsql: Drop unnamed portal immediately after execution to completion Message-ID: References: <1982325.1762810082@sss.pgh.pa.us> <00d71a54-2118-4b18-87e8-33f4a99dc624@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eBGQfxZN+rBAcL/S" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --eBGQfxZN+rBAcL/S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 13, 2025 at 04:02:24PM -0600, Sami Imseih wrote: > I am not sure I like this idea as-is, because besides that fact > that it's still a wire level change, it's not safe at all to > re-enter exec_execute_message after you just cleaned the > portal but did not drop it. This will come at the cost of tracking a new state in the backend where the portal would still live with the executor state gone, I don't like much my own plan D and the road where this leads at the end. > That is probably the best idea now. I have just done a revert of 1fd981f05369 now, let's continue the discussions. -- Michael --eBGQfxZN+rBAcL/S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmkWxmkACgkQnvQgOdby QH2kVA/+MjNPkUsikwMml0w/3HKhw2jqlntWDYuZbQCNcBYlsn0XPOFm7euBcuP4 FO+hSxi6bECvUT95efhFiq7i2HHvNU36VrPzF7pNEvSEb8KVh948GvAu7O0b+6J/ 9S6EAYjjB3SeboZeA9odScs0nDQrmDD6n7ggY45WxbVU/TL6FZXugL51aJ95p/in 0JP8cEzQoXd5RHhzBd6jbCoEJ76uw5MHxUTjAgjWvenLDpkg/+EH3QLXUahjdaHC uJZETXixq9aF4D295NfAk0jAKjNh/03275BzcWfsHMvIzffVdCkAAZ0kyQnTLwGK f4awpAl4WZD/KSWlvNn/iGORvnhVUkbrp3wN0gXManZ9lmb1dgCAUa8wJHvgb2oo gMy6l+edgPS0RcSXrU18Zsbeo5M73V94ZIbFGXV0Ll+EdULjTSHW+YnB02b9/FZd 2JqimHwELJhte92JYE0J5vvmp9UROEoXOCgPWdai0rNHAM0lUGOc5KQUO6Wzk1kh 7Kx8/WXYw96PDJ763uTGqMKs+XrD0YavLwPb7qqCEjLUCGFfqCg9++WZrRTGgo/H 3mU9xzEzt/TRu7SY/EJhBOm7ok92qhoYdDCN2RonSmDyAqB1oNgM2Lty9dQC3XKc HVl0DDpYexoGkmfnv0KBBJMqk6NhLEeTBwmcJ93qrBbWNfG6yoc= =44Ie -----END PGP SIGNATURE----- --eBGQfxZN+rBAcL/S--