mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
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
This commit is contained in:
parent
03d01d746b
commit
67948a433e
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user