pgsql: Some stylistic improvements in toast_save_datum()

Started by Peter Eisentraut9 months ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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: /messages/by-id/6604ad6e-5934-43ac-8590-15113d6ae4b1@eisentraut.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(-)