Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4907984

Browse files
committed
Fix misleading comments about TOAST access macros.
Seems to have been my error in commitaeb1631.Noted by Christoph Berg.Discussion:https://postgr.es/m/YTeLipdnSOg4NNcI@msg.df7cb.de
1 parent7cffa2e commit4907984

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
#defineVARDATA_ANY(PTR) \
362362
(VARATT_IS_1B(PTR) ? VARDATA_1B(PTR) : VARDATA_4B(PTR))
363363

364-
/* Decompressed size and compression method ofan externalcompressed Datum */
364+
/* Decompressed size and compression method ofacompressed-in-line Datum */
365365
#defineVARDATA_COMPRESSED_GET_EXTSIZE(PTR) \
366366
(((varattrib_4b *) (PTR))->va_compressed.va_tcinfo & VARLENA_EXTSIZE_MASK)
367367
#defineVARDATA_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
#defineVARATT_EXTERNAL_GET_EXTSIZE(toast_pointer) \
372372
((toast_pointer).va_extinfo & VARLENA_EXTSIZE_MASK)
373373
#defineVARATT_EXTERNAL_GET_COMPRESS_METHOD(toast_pointer) \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp