Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4907984

Browse files
committed
Fix misleading comments about TOAST access macros.
Seems to have been my error in commit aeb1631. Noted by Christoph Berg. Discussion: https://postgr.es/m/[email protected]
1 parent 7cffa2e commit 4907984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/postgres.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,13 @@ typedef struct
361361
#define VARDATA_ANY(PTR) \
362362
(VARATT_IS_1B(PTR) ? VARDATA_1B(PTR) : VARDATA_4B(PTR))
363363

364-
/* Decompressed size and compression method of an external compressed Datum */
364+
/* Decompressed size and compression method of a compressed-in-line Datum */
365365
#define VARDATA_COMPRESSED_GET_EXTSIZE(PTR) \
366366
(((varattrib_4b *) (PTR))->va_compressed.va_tcinfo & VARLENA_EXTSIZE_MASK)
367367
#define VARDATA_COMPRESSED_GET_COMPRESS_METHOD(PTR) \
368368
(((varattrib_4b *) (PTR))->va_compressed.va_tcinfo >> VARLENA_EXTSIZE_BITS)
369369

370-
/* Same, when working directly with a struct varatt_external */
370+
/* Same for external Datums; but note argument is a struct varatt_external */
371371
#define VARATT_EXTERNAL_GET_EXTSIZE(toast_pointer) \
372372
((toast_pointer).va_extinfo & VARLENA_EXTSIZE_MASK)
373373
#define VARATT_EXTERNAL_GET_COMPRESS_METHOD(toast_pointer) \

0 commit comments

Comments
 (0)