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 1t72Op-00HBB4-OM for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Nov 2024 00:53: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 1t72On-001xHQ-VD for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Nov 2024 00:53: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 1t72On-001xHI-Kt for pgsql-hackers@lists.postgresql.org; Sat, 02 Nov 2024 00:53:54 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t72Ol-004H7c-NW for pgsql-hackers@lists.postgresql.org; Sat, 02 Nov 2024 00:53:53 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2fb56cb61baso18101291fa.1 for ; Fri, 01 Nov 2024 17:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730508831; x=1731113631; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ylaaAJ/q9wM3fozX25ze/oEtQ1vGkKJPvPVbfhRfSE4=; b=G76IprwFRy9cC/bwNqcgNmPDVwCibl6InLD1Di/ZSCxLIVq15ExuEmyp7LJMJo0CXW bMOORBpurnAHAU9t3fiQD/fzKW5RJ8wsXBO0ALUZrlsVKxKFJQXCw+sclQLnESORhNSD 6RKzK9875lXBa9XEiQI9m+02FQbR67ANAKANdmSRwE2CNff2cYkocX7bB8lqhI7D+mDM CY17QeFSB8tTwFHJ8a7agSCBL1sUcxsNgq5bJ7IqQnvWuVPuO75AO+vgvQOUCCCJrq1e S1e22qcLZdl8r2KJv/rO7PgDVevF5KRCMmL1CslIMvX4f1qzaZ1+BZLlkQXyGNf9caUe DkQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730508831; x=1731113631; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ylaaAJ/q9wM3fozX25ze/oEtQ1vGkKJPvPVbfhRfSE4=; b=rtSE0Ekf++t15XWI/9XOVnjwI5oLzdVM56xY5jLxjEmSq0C8xR5mGCzZco3Ig2ZdaC OvQenV/TK30fm9LP/zeiIHmJ4t8h1tEFngZqOqgwdTE4kVjL0XGVNxoaStr33rNWb/kI +WZGJFXFE1MGGtXSxnvjCE7yccMS5AN2VnXTrMWbGqRgAdA2ptiX/YkuzBD+w/dO9/ma SqDbKRWtX9WuGZ7VB6BnIqoV336/EPZqsgtu4PpJ9VTHHbQZsW2yr/Va3LHgFLj0S9QB Y0lSyZoDWOef9Qh+OxyavWEiw6ggzqWFpizwqVwaopejNK6K7v0RosIX1i6G53hcHlTk +LzQ== X-Gm-Message-State: AOJu0Yz4FFahJRUhTcqCRTGyAkwmKp8JiFJkKRfP3HWlAg3VkFPM/EpJ i0r406cBtJ+BOkCDkTFO1qbrFSOeOxdyp7PRrQ9jEY2ZifVq5OWMKhRuiqmSEAVlEbIWTnUC9WB VN13TMP61uP39gU4URKZmIO6pwBk= X-Google-Smtp-Source: AGHT+IGOpLU5pK/0EiuUjzCSvdu4jle50CaaOeDf5zZ1mcu8MK7XmwextdyO2c97aHNRD3mkK47+yKD+jzQ/bkXc/ck= X-Received: by 2002:a05:651c:1987:b0:2fb:6465:3198 with SMTP id 38308e7fff4ca-2fdec4ca375mr48045901fa.5.1730508830245; Fri, 01 Nov 2024 17:53:50 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <1948345.1730500073@sss.pgh.pa.us> From: Michel Pelletier Date: Fri, 1 Nov 2024 17:53:14 -0700 Message-ID: Subject: Re: Using Expanded Objects other than Arrays from plpgsql To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000001b8c700625e37ca0" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001b8c700625e37ca0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Nov 1, 2024 at 3:27=E2=80=AFPM Tom Lane wrote: > Michel Pelletier writes: > > Here is a v1 patch series that does the first part of what we've been > talking about, which is to implement the new optimization rule for > the case of a single RHS reference to the target variable. I'm > curious to know if it helps you at all by itself. You'll definitely > also need commit 534d0ea6c, so probably applying these on our git > master branch would be the place to start. > I'll apply these tonight and get back to you asap. There are many functions in my API that take only one expanded RHS argument, so I'll look for some cases where your changes reduce expansions when I run my tests. Thank you! -Michel --0000000000001b8c700625e37ca0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Nov 1, 2024 at 3:27=E2=80=AFPM To= m Lane <tgl@sss.pgh.pa.us> w= rote:
Michel Pelletier <pelletier.michel@gmail.com> writes:
Here is a v1 patch series that does the first part of what we've been talking about, which is to implement the new optimization rule for
the case of a single RHS reference to the target variable.=C2=A0 I'm curious to know if it helps you at all by itself.=C2=A0 You'll definite= ly
also need commit 534d0ea6c, so probably applying these on our git
master branch would be the place to start.

<= div>I'll apply these tonight and get back to you asap.=C2=A0 There are = many functions in my API that take only one expanded RHS argument, so I'= ;ll look for some cases where your changes reduce expansions when I run my = tests.

Thank you!

-Michel=
--0000000000001b8c700625e37ca0--