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 1w0Qd7-001tfl-14 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Mar 2026 20:58:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w0Qd5-00BmMS-2O for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Mar 2026 20:58:08 +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 1w0Qd4-00BmMJ-2k for pgsql-hackers@lists.postgresql.org; Wed, 11 Mar 2026 20:58:07 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w0Qd1-00000002CBR-2azs for pgsql-hackers@lists.postgresql.org; Wed, 11 Mar 2026 20:58:07 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id A3394EC025A; Wed, 11 Mar 2026 16:58:00 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Wed, 11 Mar 2026 16:58:00 -0400 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=fm3; t=1773262680; x=1773349080; bh=8Lzy7m7nnvE/CiJDrF/Yj9fGh7SjIUnYOR+vX9z6N1E=; b= T+Mi6l97Ke+mldPgJLHDuR9qjLdMpT6dvEUNgnb+/LTr5Gyjlg4Od5p7DSfVr8Iy PhCbL7T4R2VS1jlZyNyHxYC97KdDtMiXdae9K6Pq1GFAaNVSP9CLBjvSsD/qH6uq j8j1kMe3GuKiJn5zds8Jix7aKBoIG9GLtlbptH2cvEQ02NZJE68BfMr1lx+xKeRO p0sLH5nCUVEx+GM9+tCd67s8OCDFw8O591KSM44yeZU/HMRkwEU3r30GJNY4mr0r W/FSKr0bc9SVkxubOhCJtpli4e1sWkrXaF/A42p6yEDybDnyuzgUCdpm4YoHH1IY tpFg0KjOnHQyedk0MwwsAw== 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=fm1; t=1773262680; x=1773349080; bh=8 Lzy7m7nnvE/CiJDrF/Yj9fGh7SjIUnYOR+vX9z6N1E=; b=vrNMI7fdlmNvaCoAQ or58i0mYnS+715MFROXLhtGicLq4XLkvqo9DOovwiy+E0s4NfJ0nWmru36epeNlh THXSxRzk/5KJBn963r+B8LACCkjZs5J7tqVxSSxIbIk6D/G7mtDCvm7WcsyzPtkC GLQUV8n0stkHhJ7Too/6h8foEckB8hq9bSySFnc9qxnLItDBh0VYN0lHISmHQ8l2 cBLWQa3luvMTctPuqWEcXVqBjcT5ur4NYAIW1MfXsgMJ2l8Tfx3STyVuF7O5yjX4 iy4d/1EUsoXfrloiOZ8dHIMXn1ETkNy0o1jn+roUa8S6kPU1CXzsSbgP/ts1b59O hM3gA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvkeegledvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeehiedvhfeuhfeugefgfeehgeejtdevuefhtefhueefvddugfdt ueehgfefudfhffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdpnhgspghrtghpthhtohep vddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrvhgvlhdrshhtvghhuhhlvg esghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhs thhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Mar 2026 16:57:59 -0400 (EDT) Message-ID: Date: Wed, 11 Mar 2026 21:57:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: POC: PLpgSQL FOREACH IN JSON ARRAY To: Pavel Stehule , PostgreSQL Hackers 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 28.02.26 08:10, Pavel Stehule wrote: > I wrote PoC for previously proposed plpgsql statement FOREACH IN JSON ARRAY Maybe this could be written in such a way that it doesn't hardcode JSON arrays specifically, but a type could have an iteration helper function that would feed this feature?