From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unused tuple expansion and copying functions
Date: Sat, 14 Nov 2026 18:25:17 +0000
Message-ID: <E1xSIRB-00000000hrE-3tvY@gemulon.postgresql.org> (raw)
Remove unused tuple expansion and copying functions
minimal_expand_tuple() has been unused since 4da597edf1b and
heap_expand_tuple() since 20d3fe9009d, which in turn left the static
expand_tuple() unreachable. heap_copytuple_with_tuple() has had no
callers since 141fd1b66ce. Remove them.
Two regression test comments naming expand_tuple() are updated to
refer to the code that handles missing attributes nowadays.
Reported-by: Andres Freund <andres@anarazel.de>
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Author: Aleksander Alekseev <aleksander@tigerdata.com>
Reviewed-by: Kyle Snavely <kjsnavely@gmail.com>
Discussion: https://postgr.es/m/gf6hokynqjp6g7o4zh6yy7ekbdbig5cnnd6ilk6iw3aodilj43%405x7xrz52jhve
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/81b2179b492e3af891544813b7e22a42386b34d0
Modified Files
--------------
src/backend/access/common/heaptuple.c | 290 -----------------------------
src/include/access/htup_details.h | 3 -
src/test/regress/expected/fast_default.out | 4 +-
src/test/regress/sql/fast_default.sql | 4 +-
4 files changed, 4 insertions(+), 297 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: Remove unused tuple expansion and copying functions
In-Reply-To: <E1xSIRB-00000000hrE-3tvY@gemulon.postgresql.org>
References: <E1xSIRB-00000000hrE-3tvY@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