From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Cache typlens of a SQL function's input arguments.
Date: Thu, 17 Apr 2025 16:57:47 +0000
Message-ID: <E1u5SYd-000Vjw-1r@gemulon.postgresql.org> (raw)
Cache typlens of a SQL function's input arguments.
This gets rid of repetitive get_typlen calls in postquel_sub_params,
which show up as costing a few percent of the runtime in simple test
cases (more with more parameters).
In combination with the preceding patches, this gets us most of the
way back down to the amount of per-call overhead that functions.c
had before commit 0dca5d68d. There are some more things that could
be done, but this seems like an okay place to stop for v18.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0400ae4a68831250347407463453447daa9548df
Modified Files
--------------
src/backend/executor/functions.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Cache typlens of a SQL function's input arguments.
In-Reply-To: <E1u5SYd-000Vjw-1r@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox