diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-09-08 14:11:35 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-09-08 14:11:35 -0400 |
commit | 67948a433e18a8561daf89dcc53e591a3fac659a (patch) | |
tree | 12324f6a8e74091767cd72c8adec32f44d19a377 | |
parent | 03d01d746b9338dd1568d37d26b344928f82c5ff (diff) | |
download | postgresql-67948a433e18a8561daf89dcc53e591a3fac659a.tar.gz postgresql-67948a433e18a8561daf89dcc53e591a3fac659a.zip |
Fix misleading comments about TOAST access macros.
Seems to have been my error in commit aeb1631ed.
Noted by Christoph Berg.
Discussion: https://postgr.es/m/YTeLipdnSOg4NNcI@msg.df7cb.de
-rw-r--r-- | src/include/postgres.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h index 8e02f911086..0446daa0e61 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -361,13 +361,13 @@ typedef struct #define VARDATA_ANY(PTR) \ (VARATT_IS_1B(PTR) ? VARDATA_1B(PTR) : VARDATA_4B(PTR)) -/* Decompressed size and compression method of an external compressed Datum */ +/* Decompressed size and compression method of a compressed-in-line Datum */ #define VARDATA_COMPRESSED_GET_EXTSIZE(PTR) \ (((varattrib_4b *) (PTR))->va_compressed.va_tcinfo & VARLENA_EXTSIZE_MASK) #define VARDATA_COMPRESSED_GET_COMPRESS_METHOD(PTR) \ (((varattrib_4b *) (PTR))->va_compressed.va_tcinfo >> VARLENA_EXTSIZE_BITS) -/* Same, when working directly with a struct varatt_external */ +/* Same for external Datums; but note argument is a struct varatt_external */ #define VARATT_EXTERNAL_GET_EXTSIZE(toast_pointer) \ ((toast_pointer).va_extinfo & VARLENA_EXTSIZE_MASK) #define VARATT_EXTERNAL_GET_COMPRESS_METHOD(toast_pointer) \ |