From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Some stylistic improvements in toast_save_datum()
Date: Mon, 15 Sep 2025 05:50:29 +0000
Message-ID: <E1uy26f-000mrp-0e@gemulon.postgresql.org> (raw)
Some stylistic improvements in toast_save_datum()
Move some variables to a smaller scope. Initialize chunk_data before
storing a pointer to it; this avoids compiler warnings on clang-21, or
respectively us having to work around it by initializing it to zero
before the variable is used (as was done in commit e92677e8633).
Discussion: https://www.postgresql.org/message-id/flat/6604ad6e-5934-43ac-8590-15113d6ae4b1%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/748caa9dcb686a84f239ee2cc08030d7c1efddd4
Modified Files
--------------
src/backend/access/common/toast_internals.c | 39 ++++++++++++-----------------
1 file changed, 16 insertions(+), 23 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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Some stylistic improvements in toast_save_datum()
In-Reply-To: <E1uy26f-000mrp-0e@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