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

Commit540f316

Browse files
committed
Blind attempt to fix pglz_maximum_compressed_size
Commit11a078c triggered failures on big-endian machines, and theonly plausible place for an issue seems to be that TOAST_COMPRESS_SIZEcalls VARSIZE instead of VARSIZE_ANY. So try fixing that blindly.Discussion:https://www.postgresql.org/message-id/20191001131803.j6uin7nho7t6vxzy%40development
1 parentfa2fe04 commit540f316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/include/access/toast_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ typedef struct toast_compress_header
3131
*/
3232
#defineTOAST_COMPRESS_HDRSZ((int32) sizeof(toast_compress_header))
3333
#defineTOAST_COMPRESS_RAWSIZE(ptr) (((toast_compress_header *) (ptr))->rawsize)
34-
#defineTOAST_COMPRESS_SIZE(ptr)((int32)VARSIZE(ptr) - TOAST_COMPRESS_HDRSZ)
34+
#defineTOAST_COMPRESS_SIZE(ptr)((int32)VARSIZE_ANY(ptr) - TOAST_COMPRESS_HDRSZ)
3535
#defineTOAST_COMPRESS_RAWDATA(ptr) \
3636
(((char *) (ptr)) + TOAST_COMPRESS_HDRSZ)
3737
#defineTOAST_COMPRESS_SET_RAWSIZE(ptr,len) \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp