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

Commitad7cc1c

Browse files
committed
Fix pg_size_bytes() to be more portable.
Commit53874c5 broke various 32-bitbuildfarm machines because it incorrectly used an 'L' suffix for whatneeded to be a 64-bit literal. Thanks to Michael Paquier for helpingto diagnose this.
1 parent53874c5 commitad7cc1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/adt/dbsize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ pg_size_bytes(PG_FUNCTION_ARGS)
821821
elseif (pg_strcasecmp(strptr,"gb")==0)
822822
multiplier=1024*1024*1024;
823823
elseif (pg_strcasecmp(strptr,"tb")==0)
824-
multiplier=1024*1024*1024*1024L;
824+
multiplier=1024*1024*1024*1024LL;
825825
else
826826
ereport(ERROR,
827827
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp