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 1tf0NT-00Gtk2-GW for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2025 17:36:55 +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 1tf0NS-00FWYv-DL for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2025 17:36:54 +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.94.2) (envelope-from ) id 1tf0NS-00FWYn-3s for pgsql-hackers@lists.postgresql.org; Mon, 03 Feb 2025 17:36:54 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tf0NO-0034cx-2T for pgsql-hackers@lists.postgresql.org; Mon, 03 Feb 2025 17:36:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 513Ham27412281; Mon, 3 Feb 2025 12:36:49 -0500 From: Tom Lane To: Andrey Borodin cc: Pavel Borisov , Michel Pelletier , Pavel Stehule , pgsql-hackers@lists.postgresql.org Subject: Re: Using Expanded Objects other than Arrays from plpgsql In-reply-to: <932C9840-63D6-469D-9C65-1B1A14594D29@yandex-team.ru> References: <1342498.1729444411@sss.pgh.pa.us> <1445998.1729482404@sss.pgh.pa.us> <2062830.1729625620@sss.pgh.pa.us> <2265411.1729699470@sss.pgh.pa.us> <2354718.1729737539@sss.pgh.pa.us> <2581216.1729794746@sss.pgh.pa.us> <1948345.1730500073@sss.pgh.pa.us> <3797606.1732045516@sss.pgh.pa.us> <1417389.1736964543@sss.pgh.pa.us> <3363452.1737483125@sss.pgh.pa.us> <0AC229FA-A3F1-43FD-B0DC-A46A73FEAFF7@yandex-team.ru> <931398.1737905825@sss.pgh.pa.us> <38A31221-C1C4-4846-9709-D66ACD76E87A@yandex-team.ru> <46876.1737918281@sss.pgh.pa.us> <3682021.1738288421@sss.pgh.pa.us> <256915.1738533419@sss.pgh.pa.us> <932C9840-63D6-469D-9C65-1B1A14594D29@yandex-team.ru> Comments: In-reply-to Andrey Borodin message dated "Mon, 03 Feb 2025 14:19:09 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <412279.1738604208.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 03 Feb 2025 12:36:48 -0500 Message-ID: <412280.1738604208@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrey Borodin writes: > (Well, maybe paramarg2 resonates a bit, just from similarity with varcha= r2) I'm not wedded to that name; do you have a better idea? Another idea could be to make it an array: - void *paramarg; /* private data for same */ + void *paramarg[2]; /* private data for same */ That would require touching other code using that field, but there probably isn't much --- at least within our own tree, plpgsql itself is the only user of paramarg. Still, possibly breaking code that didn't need to be broken doesn't seem like an improvement. > ecpg tests seem to fail on Windows[0], but looks like it's not related t= o this thread. Yeah, known problem with Meson dependencies[1]; it's breaking pretty much all the cfbot's windows builds right now, although maybe there's a timing issue that allows some to pass. regards, tom lane [1] https://www.postgresql.org/message-id/flat/CAGECzQSvM3iSDmjF%2B%3DKof5= an6jN8UbkP_4cKKT9w6GZavmb5yQ%40mail.gmail.com