summaryrefslogtreecommitdiff
path: root/decode.c
diff options
context:
space:
mode:
authorChristoph Berg2024-06-07 11:32:55 +0000
committerChristoph Berg2024-06-07 11:34:47 +0000
commit40dcfd17a4af5796782ab6ac681bad824c2076cd (patch)
treea7fc2fe297e2e6d98897ec195bb89268bb06aba7 /decode.c
parentf4a8d74b7aafbcfc5193d0df3063acff45f964e7 (diff)
Move "number of chunks" to TOAST message
No reason to waste two separate lines on this.
Diffstat (limited to 'decode.c')
-rw-r--r--decode.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/decode.c b/decode.c
index 7446bd5..37f723f 100644
--- a/decode.c
+++ b/decode.c
@@ -1382,16 +1382,15 @@ ReadStringFromToast(const char *buffer,
#else
toast_ext_size = toast_ptr.va_extsize;
#endif
+ num_chunks = (toast_ext_size - 1) / TOAST_MAX_CHUNK_SIZE + 1;
printf(" TOAST value. Raw size: %8d, external size: %8d, "
- "value id: %6d, toast relation id: %6d\n",
+ "value id: %6d, toast relation id: %6d, chunks: %6d\n",
toast_ptr.va_rawsize,
toast_ext_size,
toast_ptr.va_valueid,
- toast_ptr.va_toastrelid);
-
- num_chunks = (toast_ext_size - 1) / TOAST_MAX_CHUNK_SIZE + 1;
- printf(" Number of chunks: %d\n", num_chunks);
+ toast_ptr.va_toastrelid,
+ num_chunks);
/* Open TOAST relation file */
toast_relation_path = strdup(fileName);