Some stylistic improvements in toast_save_datum()
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 05:27:31 +0000 (07:27 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 05:43:23 +0000 (07:43 +0200)
commit748caa9dcb686a84f239ee2cc08030d7c1efddd4
treeec2fd58ce6fd67653cedfd9b37ca26818e048691
parentbf5da5d6cae959d8119b4b137ddd9912292b8014
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
src/backend/access/common/toast_internals.c