diff options
author | Christoph Berg | 2024-06-07 11:32:55 +0000 |
---|---|---|
committer | Christoph Berg | 2024-06-07 11:34:47 +0000 |
commit | 40dcfd17a4af5796782ab6ac681bad824c2076cd (patch) | |
tree | a7fc2fe297e2e6d98897ec195bb89268bb06aba7 /decode.c | |
parent | f4a8d74b7aafbcfc5193d0df3063acff45f964e7 (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.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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); |